What is HTTP Status Code?

A 3-digit integer issued by a server in response to a client's HTTP request, indicating whether the request succeeded or failed.

Detailed Explanation

Status codes fall into 5 categories: 1xx (Informational), 2xx (Success), 3xx (Redirection), 4xx (Client Error), and 5xx (Server Error). Standard OpenAPI specs should explicitly document status codes expected per operation.

Common Mistakes to Avoid

  • Returning 200 OK for business errors
  • Using 500 Internal Server Error for validation failures

Audit Error Status Codes with APIForge

Paste any OpenAPI specification URL or YAML file into APIForge for instant 0-100 quality scoring, schema linting, and zero-CORS proxy testing.

Try Tool Now →
Share:𝕏 Postin Share