Homeglossary

HTTP Status Codes

HTTP status codes are three-digit response indicators that a server sends after a browser, app, or API makes a request. They show whether the request succeeded, needs another action, or failed. The first digit identifies the response class, while the exact code provides more specific diagnostic context.

Build and test API responses with Emergent.

What Are HTTP Status Codes?

HTTP status codes are three-digit response indicators a server sends after a browser, app, or API makes a request. They show whether the request succeeded, needs another action, or failed. The standard codes are maintained in the HTTP status reference.

How HTTP Status Codes Work

  1. A client requests a web page, file, or API endpoint.
  2. The server receives and processes the request.
  3. The server returns a status code, headers, and sometimes a response body.
  4. The client uses that response to display content, follow a redirect, or report an error.

HTTP Status Code Classes: 1xx to 5xx

ClassMeaningExamples
1xxInformational100 Continue
2xxSuccess200 OK, 201 Created, 204 No Content
3xxRedirection301 Moved Permanently
4xxClient request issue400, 401, 403, 404, 409, 429
5xxServer failure500 Internal Server Error

How to Read Common HTTP Error Codes

  • 400 means the request is invalid or malformed.
  • 401 means authentication is required or failed. 403 means access is refused.
  • 409 means the request conflicts with the resource's current state.
  • 500 means an unexpected server-side failure. A code describes the outcome, not always the root cause.

Checking Status Codes During Testing

Check status codes in a browser's Network panel, API client, server logs, or automated tests. Test expected failures as well as success responses, since a valid delete request may correctly return 204 rather than 200.

HTTP Status Codes in Emergent

Build and test API responses with Emergent. Its workflow supports status-code-aware integrations, testing, and deployment. Explore Emergent Learn, the software glossary, and AI tools for software development.

Start Building
on Emergent today
Start Building