Response Codes
  • 27 Mar 2025
  • Dark
    Light

Response Codes

  • Dark
    Light

Article summary

Successful & Informational Responses (2xx–3xx)

Status Code

Meaning

Description

200 OK

Success

The request was successful, and the response body contains the result.

201 Created

Resource Created

The request was successful, and a new resource was created.

202 Accepted

Request Accepted

The request has been accepted for processing, but it’s not completed yet.

204 No Content

Success, No Body

The request was successful, but there's no content in the response body.

304 Not Modified

Cached Response

The resource has not been modified since the last request. No need to resend the data.

Client Error Responses (4xx)

Status Code

Meaning

Description

400 Bad Request

Invalid Input

The server couldn't understand the request due to invalid syntax or parameters.

401 Unauthorized

Auth Required

Authentication is required or has failed.

403 Forbidden

Access Denied

You don’t have permission to access this resource.

404 Not Found

Resource Missing

The requested resource doesn’t exist.

409 Conflict

Resource Conflict

The request conflicts with the current state (e.g. duplicate entry).

422 Unprocessable Entity

Validation Failed

Server understands the request but cannot process it due to semantic errors.

Server Error Responses (5xx)

Status Code

Meaning

Description

500 Internal Server Error

Generic Error

Something went wrong on the server.

502 Bad Gateway

Invalid Upstream

Server received an invalid response from another server.

503 Service Unavailable

Temporarily Down

Server is overloaded or down for maintenance.

504 Gateway Timeout

Upstream Timeout

Server didn’t get a timely response from another server.


Was this article helpful?

What's Next