collins Profile picture
Software engineer & Technical Co-founder

Nov 27, 2022, 16 tweets

Introduction to HTTP response status codes.

Everyone has probably gotten the classic 404 page-not-found error. That is an HTTP client error status code and there are a lot more of them.

#HTTPS #webdevelopment #Web

HTTP response status codes indicate whether a specific HTTP request has been successfully completed or not.
the http responses are grouped in five classes:

1. Informational responses (100 – 199)
A 1xx status code means that the server has received the request and is continuing the process. This code is purely temporary and is given while the request processing continues. For most tasks you won't encounter these much

The Informational responses include:
100 for Continue
101 for Switching protocols
102 for Processing
103 for Early Hints

2. Successful responses (200 – 299)
A 2xx Successful status code means that the request was successful and the browser has received the expected information.

The successful responses code include:
200 OK
201 Created
202 Accepted
203 Non-Authoritative Information
204 No Content
205 Reset Content
206 Partial Content
207 Multi-Status
208 Already Reported

3. Redirection messages (300 – 399)
A 3xx Redirection status code means that you have been redirected and the completion of the request requires further action

The Redirection messages codes include:
300 Multiple Choices
301 Moved Permanently
302 Found (Previously "Moved temporarily")
303 See Other
304 Not Modified
305 Use Proxy
306 Switch Proxy
307 Temporary Redirect
308 Permanent Redirect

4. Client error responses (400 – 499)
A 4xx Client Error status code means that the website or the page could not be reached, either the page is unavailable or the request contains bad syntax. As a developer you should do your best to avoid these type of errors

The Client error responses codes include:
400 Bad Request
401 Unauthorized
402 Payment Required
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable
407 Proxy Authentication Required
408 Request Timeout
409 Conflict
410 Gone
411 Length Required

412 Precondition Failed
413 Payload Too Large
414 URI Too Long
415 Unsupported Media Type
416 Range Not Satisfiable
417 Expectation Failed
418 I'm a Teapot
421 Misdirected Request
422 Unprocessable Entity
423 Locked
424 Failed Dependency
425 Too Early

426 Upgrade Required
428 Precondition Required
429 Too Many Requests
431 Request Header Fields Too Large
451 Unavailable For Legal Reasons

5. Server error responses (500 – 599)
A 5xx Server error status code means that while the request appears to be valid, the server could not complete the request. If you're experiencing 5xx server errors for your website, you should immediately look at your server.

The server error status code includes;
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported
506 Variant Also Negotiates
507 Insufficient Storage
508 Loop Detected

510 Not Extended
511 Network Authentication Required

Thank you for checking out this thread
follow for more content on web development

#webdevelopment

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling