HTTP Status Codes Reference

Complete guide to HTTP response status codes

← Back
Status Code Categories
1xx - Informational 2xx - Success 3xx - Redirection 4xx - Client Errors 5xx - Server Errors

1xx Informational Responses

100 Continue
100
The server has received the request headers and the client should proceed to send the request body.
101 Switching Protocols
101
The requester has asked the server to switch protocols and the server has agreed to do so.
102 Processing
102
The server has received and is processing the request, but no response is available yet.

2xx Successful Responses

200 OK
200
Standard response for successful HTTP requests. The actual response will depend on the request method used.
201 Created
201
The request has been fulfilled, resulting in the creation of a new resource.
202 Accepted
202
The request has been accepted for processing, but the processing has not been completed.
203 Non-Authoritative Information
203
The request was successful but the returned metadata is not from the origin server, but from a local or third-party copy.
204 No Content
204
The server successfully processed the request and is not returning any content.
205 Reset Content
205
The server has fulfilled the request and asks the client to reset the document view or form input.
206 Partial Content
206
The server is delivering only part of the resource due to a range header sent by the client.

3xx Redirection Messages

300 Multiple Choices
300
Indicates multiple options for the resource from which the client may choose.
301 Moved Permanently
301
This and all future requests should be directed to the given URI.
302 Found
302
The resource was found but is temporarily under a different URI.
303 See Other
303
The response to the request can be found under a different URI and should be retrieved using GET.
304 Not Modified
304
Indicates that the resource has not been modified since the version specified by the request headers.
305 Use Proxy
305
The requested resource is only available through a proxy, whose address is provided in the response.
306 Unused
306
This code was used in a previous version of the HTTP specification but is no longer used.
307 Temporary Redirect
307
The request should be repeated with another URI, but future requests should still use the original URI.

4xx Client Error Responses

400 Bad Request
400
The server cannot process the request due to a client error (e.g., malformed syntax).
401 Unauthorized
401
Authentication is required and has failed or has not been provided.
402 Payment Required
402
Reserved for future use (originally intended for digital payment systems).
403 Forbidden
403
The server understood the request but refuses to authorize it.
404 Not Found
404
The requested resource could not be found on the server.
405 Method Not Allowed
405
The request method is not supported for the requested resource.
406 Not Acceptable
406
The server cannot produce a response matching the list of acceptable values.
407 Proxy Authentication Required
407
The client must first authenticate itself with the proxy.
408 Request Timeout
408
The server timed out waiting for the request from the client.
409 Conflict
409
The request conflicts with the current state of the server.
410 Gone
410
The requested resource is no longer available and will not be available again.
411 Length Required
411
The request did not specify the length of its content.
412 Precondition Failed
412
The server does not meet one of the preconditions specified in the request.
413 Payload Too Large
413
The request is larger than the server is willing or able to process.
414 URI Too Long
414
The URI provided was too long for the server to process.
415 Unsupported Media Type
415
The request entity has a media type which the server does not support.
416 Range Not Satisfiable
416
The client has asked for a portion of the file but the server cannot supply it.
417 Expectation Failed
417
The server cannot meet the requirements of the Expect request-header field.
426 Upgrade Required
426
The client should switch to a different protocol.
451 Unavailable For Legal Reasons
451
The resource is unavailable due to legal reasons (e.g., censorship).

5xx Server Error Responses

500 Internal Server Error
500
The server encountered an unexpected condition that prevented it from fulfilling the request.
501 Not Implemented
501
The server does not support the functionality required to fulfill the request.
502 Bad Gateway
502
The server was acting as a gateway or proxy and received an invalid response from the upstream server.
503 Service Unavailable
503
The server is currently unable to handle the request due to temporary overloading or maintenance.
504 Gateway Timeout
504
The server was acting as a gateway or proxy and did not receive a timely response.
505 HTTP Version Not Supported
505
The server does not support the HTTP protocol version used in the request.