HTTP Status Codes Reference

Complete reference guide for HTTP status codes with descriptions and common use cases.

Showing 57 of 57 status codes

1xx - Informational

100Continue1xx

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

101Switching Protocols1xx

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

102Processing1xx

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

103Early Hints1xx

Used to return some response headers before final HTTP message.

2xx - Success

200OK2xx

The request has succeeded. The meaning depends on the HTTP method used.

GET requests returning dataPUT/PATCH successful updates
201Created2xx

The request has been fulfilled and a new resource has been created.

POST requests creating new resourcesUser registration
202Accepted2xx

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

Async operationsBatch processing requests
203Non-Authoritative Information2xx

The returned meta-information is from a cached copy instead of the origin server.

204No Content2xx

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

DELETE requestsPUT without response body
205Reset Content2xx

The server successfully processed the request and is asking the client to reset the document view.

206Partial Content2xx

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

Video streamingLarge file downloads

3xx - Redirection

300Multiple Choices3xx

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

301Moved Permanently3xx

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

URL migrationsDomain changesSEO redirects
302Found3xx

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

Temporary redirectsA/B testing
303See Other3xx

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

304Not Modified3xx

This is used for caching purposes. It tells the client that the response has not been modified.

Browser cachingCDN caching
307Temporary Redirect3xx

The server sends this response to direct the client to get the requested resource at another URI with same method.

308Permanent Redirect3xx

The resource is now permanently located at another URI. Similar to 301 but method must not change.

4xx - Client Errors

400Bad Request4xx

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

Malformed JSONInvalid query parametersMissing required fields
401Unauthorized4xx

The client must authenticate itself to get the requested response.

Missing authenticationInvalid/expired tokens
402Payment Required4xx

Reserved for future use. Originally intended for digital payment systems.

403Forbidden4xx

The client does not have access rights to the content. Unlike 401, the identity is known.

Insufficient permissionsIP blockedResource access denied
404Not Found4xx

The server can not find the requested resource. The URL is not recognized.

Invalid URLsDeleted resourcesTypos in URLs
405Method Not Allowed4xx

The request method is known by the server but is not supported by the target resource.

GET on POST-only endpointDELETE when not allowed
406Not Acceptable4xx

The server cannot produce a response matching the list of acceptable values.

407Proxy Authentication Required4xx

The client must first authenticate itself with the proxy.

408Request Timeout4xx

The server would like to shut down this unused connection.

Slow client connectionsNetwork issues
409Conflict4xx

The request conflicts with the current state of the server.

Version conflictsDuplicate entriesConcurrent modifications
410Gone4xx

The content has been permanently deleted from server, with no forwarding address.

Intentionally removed resourcesDeprecated APIs
411Length Required4xx

Server rejected the request because the Content-Length header field is not defined.

412Precondition Failed4xx

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

413Payload Too Large4xx

Request entity is larger than limits defined by server.

File upload too largeRequest body exceeds limit
414URI Too Long4xx

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

415Unsupported Media Type4xx

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

Wrong Content-Type headerUnsupported file format
416Range Not Satisfiable4xx

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

417Expectation Failed4xx

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

418I'm a Teapot4xx

The server refuses the attempt to brew coffee with a teapot. (April Fools joke from 1998)

422Unprocessable Entity4xx

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

Validation errorsInvalid field values
423Locked4xx

The resource that is being accessed is locked.

424Failed Dependency4xx

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

425Too Early4xx

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

426Upgrade Required4xx

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

428Precondition Required4xx

The origin server requires the request to be conditional.

429Too Many Requests4xx

The user has sent too many requests in a given amount of time (rate limiting).

Rate limitingDDoS protectionAPI quotas
431Request Header Fields Too Large4xx

The server is unwilling to process the request because its header fields are too large.

451Unavailable For Legal Reasons4xx

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

5xx - Server Errors

500Internal Server Error5xx

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

Unhandled exceptionsServer bugsConfiguration errors
501Not Implemented5xx

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

502Bad Gateway5xx

The server, while working as a gateway, got an invalid response from the upstream server.

Proxy errorsUpstream server down
503Service Unavailable5xx

The server is not ready to handle the request. Common causes are maintenance or overload.

Server maintenanceOverloaded serverTemporary outage
504Gateway Timeout5xx

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

Slow upstream serverNetwork timeout
505HTTP Version Not Supported5xx

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

506Variant Also Negotiates5xx

The server has an internal configuration error.

507Insufficient Storage5xx

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

508Loop Detected5xx

The server detected an infinite loop while processing the request.

510Not Extended5xx

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

511Network Authentication Required5xx

The client needs to authenticate to gain network access.