DEV Community

loading...
Cover image for Your Guide to HTTP Response Status Code

Your Guide to HTTP Response Status Code

Aya Bouchiha
Full stack web developer
・2 min read

Hello, I'm Aya Bouchiha and this is #day-31, in this post, we'll cover the most famous HTTP Status Codes.

Definition of HTTP Response Status Codes

HTTP response status codes are three-digit responses from the server to the browser-side request. such as 500 and 404.

HTTP Status Codes Groups

These are the most famous HTTP Status Codes, for more details:

1. Informational Responses (100 - 199)

  • 100: (Continue) means that the initial part of the request has been received and has not yet been rejected by the server.

  • 102: (Processing) this status code means that the server has received and is processing the request. But no response is available yet

2. Successful Responses (200 - 299)

  • 200 : (OK) the request has succeded.

  • 201 : (Created) means that the request (POST or PUT) has succeeded and a new resource has been created as a result.

  • 202: (Accepted) the request has been accepted for processing, but the processing has not been completed

3. Redirection Messages (300 - 399)

  • 301: (Moved Permanently) indicates that the URL has been changed permanently & the new one is given in the response

  • 307: (Temporary Redirect) the server-side send this kind of response in order to direct the client to get the requested resource at another URI

4. Client Error Responses (400 - 499)

  • 400: (Bad Request) the server can't understand the request due to the invalid syntax.

  • 401: (Unauthorized) means that the client is unauthenticated, and should authenticate for getting the requested response

  • 403: (Forbidden) the server refused to give the requested resource because the client is unauthorized to get the content.

  • 404: (Not Found) indicates that the URL is not recognized.

  • 405: (Method Not Allowed) The request method is not supported.

5. Server Error Responses (500 - 599)

  • 500: (Internal Server Error)given when an unexpected condition was encountered and no more specific message is suitable

  • 501: (Not Implemented) indicates that the request can not be handled because it is not supported by the server

  • 503: (Service Unavailable) indicates that the server is currently not ready to handle the request.

  • 511: (Network Authentication Required) means that the client needs to authenticate to gain network access.

References and useful Resources

Quote of the day

"failure is an event, not a person"

  • Zig Ziglar

Happy Coding :)

Discussion (0)