HTTP Status Code Lookup

Complete reference for HTTP status codes with descriptions and examples

Showing 57 of 57 status codes
100
Informational

Continue

The server has received the request headers and the client should proceed to send the request body.

101
Informational

Switching Protocols

The requester has asked the server to switch protocols and the server has agreed to do so.

102
Informational

Processing

The server has received and is processing the request, but no response is available yet.

103
Informational

Early Hints

Used to return some response headers before final HTTP message.

200
Success

OK

The request has succeeded. The meaning of the success depends on the HTTP method.

Example: GET request for a resource that exists

201
Success

Created

The request has been fulfilled and resulted in a new resource being created.

Example: POST request that creates a new user

202
Success

Accepted

The request has been accepted for processing, but the processing has not been completed.

203
Success

Non-Authoritative Information

The server successfully processed the request, but is returning information from another source.

204
Success

No Content

The server successfully processed the request and is not returning any content.

Example: DELETE request that removes a resource

205
Success

Reset Content

The server successfully processed the request, but is not returning any content, and requires that the requester reset the document view.

206
Success

Partial Content

The server is delivering only part of the resource due to a range header sent by the client.

300
Redirection

Multiple Choices

The request has more than one possible response. The user agent should choose one of them.

301
Redirection

Moved Permanently

The URL of the requested resource has been changed permanently. The new URL is given in the response.

Example: Website moved to new domain

302
Redirection

Found

The URI of requested resource has been changed temporarily. Further changes in the URI might be made in the future.

303
Redirection

See Other

The server sent this response to direct the client to get the requested resource at another URI with a GET request.

304
Redirection

Not Modified

The client has performed a conditional GET request and access is allowed, but the document has not been modified.

307
Redirection

Temporary Redirect

The server sends this response to direct the client to get the requested resource at another URI with same method that was used in the prior request.

308
Redirection

Permanent Redirect

The resource is now permanently located at another URI, specified by the Location: header.

400
Client error

Bad Request

The server could not understand the request due to invalid syntax.

Example: Malformed JSON in request body

401
Client error

Unauthorized

The client must authenticate itself to get the requested response.

Example: Missing or invalid authentication token

402
Client error

Payment Required

This response code is reserved for future use. Initial aim for creating this code was using it for digital payment systems.

403
Client error

Forbidden

The client does not have access rights to the content, so the server is refusing to give the requested resource.

Example: User lacks permission to access resource

404
Client error

Not Found

The server can not find the requested resource. This is probably the most famous status code due to its frequent occurrence on the web.

Example: Requested page or API endpoint does not exist

405
Client error

Method Not Allowed

The request method is known by the server but has been disabled and cannot be used.

Example: POST request to a GET-only endpoint

406
Client error

Not Acceptable

The target resource does not have a current representation that would be acceptable to the user agent.

407
Client error

Proxy Authentication Required

The client must first authenticate itself with the proxy.

408
Client error

Request Timeout

The server would like to shut down this unused connection.

409
Client error

Conflict

The request conflicts with the current state of the server.

Example: Trying to create resource that already exists

410
Client error

Gone

The requested resource is no longer available at the server and no forwarding address is known.

411
Client error

Length Required

The server refuses to accept the request without a defined Content-Length.

412
Client error

Precondition Failed

The client has indicated preconditions in its headers which the server does not meet.

413
Client error

Payload Too Large

Request entity is larger than limits defined by server.

414
Client error

URI Too Long

The URI requested by the client is longer than the server is willing to interpret.

415
Client error

Unsupported Media Type

The media format of the requested data is not supported by the server.

416
Client error

Range Not Satisfiable

The range specified by the Range header field in the request cannot be fulfilled.

417
Client error

Expectation Failed

The expectation indicated by the Expect request header field cannot be met by the server.

418
Client error

I'm a teapot

The server refuses the attempt to brew coffee with a teapot.

Example: April Fools' joke from 1998

422
Client error

Unprocessable Entity

The request was well-formed but was unable to be followed due to semantic errors.

423
Client error

Locked

The resource that is being accessed is locked.

424
Client error

Failed Dependency

The request failed because it depended on another request and that request failed.

425
Client error

Too Early

Indicates that the server is unwilling to risk processing a request that might be replayed.

426
Client error

Upgrade Required

The server refuses to perform the request using the current protocol.

428
Client error

Precondition Required

The origin server requires the request to be conditional.

429
Client error

Too Many Requests

The user has sent too many requests in a given amount of time.

Example: Rate limiting exceeded

431
Client error

Request Header Fields Too Large

The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large.

451
Client error

Unavailable For Legal Reasons

The user agent requested a resource that cannot legally be provided.

500
Server error

Internal Server Error

The server has encountered a situation it does not know how to handle.

Example: Unhandled exception in server code

501
Server error

Not Implemented

The request method is not supported by the server and cannot be handled.

502
Server error

Bad Gateway

The server, while working as a gateway to get a response needed to handle the request, got an invalid response.

Example: Upstream server returned invalid response

503
Server error

Service Unavailable

The server is not ready to handle the request.

Example: Server maintenance or overload

504
Server error

Gateway Timeout

The server is acting as a gateway and cannot get a response in time.

505
Server error

HTTP Version Not Supported

The HTTP version used in the request is not supported by the server.

506
Server error

Variant Also Negotiates

The server has an internal configuration error.

507
Server error

Insufficient Storage

The server is unable to store the representation needed to complete the request.

508
Server error

Loop Detected

The server detected an infinite loop while processing the request.

510
Server error

Not Extended

Further extensions to the request are required for the server to fulfill it.

511
Server error

Network Authentication Required

The client needs to authenticate to gain network access.