Sort Descriptions of HTTP Response Status Code

Saif Uddin
2 min readMay 21, 2021

All HTTP response status codes are separated into five categories. The first digit of the status code defines the category of response. API uses the following response status codes.

1xx informational response

100 Continue — Server is continue his execution.
101 Switching Protocols — The requester has asked the server to switch protocols and the server has agreed to do so.

2xx success

200 OK — The request has succeeded. The client can read the result of the request in the body and the headers of the response.
201 Created — The request has been fulfilled and resulted in a new resource being created.
202 Accepted — The request has been accepted for processing, but the processing has not been completed.
204 No Content — The request has succeeded but returns no message body.

3xx redirection

300 Multiple Choices — Indicates multiple options for the resource from which the client may choose.
301 Moved Permanently — This and all future requests should be directed to the given URI from server.
302 Found — To Tells the client look at new URL.302 has been superseded by 303 and 307.
303 See Other — The response to the request can be found under another URI using the GET method.
304 Not Modified — Indicates that the resource has not been modified , need to specified Conditional requests.
307 Temporary Redirect — This request should be repeated with another URI.
308 Permanent Redirect — This request and all future requests should be repeated using another URI.

4xx client errors

400 Bad Request — The request could not be understood by the server due to an apparent client error (e.g., malformed request syntax, size too large, invalid request message framing, or deceptive request routing). The message body will contain more information.
401 Unauthorized — The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
403 Forbidden — The server understood the request, but is refusing to fulfill it.
404 Not Found — The requested resource could not be found. This error can be due to a temporary or permanent condition.
405 Method Not Allowed — The request method is not supported for the requested resource.
410 Gone — Indicates that the resource requested is no longer available and will not be available again.
429 Too Many Requests — The user has sent too many requests in a given amount of time.

5xx server errors

500 Internal Server Error — A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.
502 Bad Gateway — The server was acting as a gateway or proxy and received an invalid response from the upstream server.
503 Service Unavailable — The server is currently unable to handle the request due to a temporary condition which will be alleviated after some delay.
505 HTTP Version Not Supported — The server does not support the HTTP protocol version used in the request.

--

--