DEV Community

Cover image for HTTP Status Codes
Mateus V. Farias
Mateus V. Farias

Posted on • Edited on

HTTP Status Codes

What are they and what are they for?

1XX - Informational

Indicates only one information. Examples:

100 - Continue.
102 - Processing

2XX - Success

Indicates successful request. Examples:

200 - OK
201 - Created
202 - Accepted

3XX - Redirection

Indicates a redial. Examples:

301 - Moved Permanently
308 - Permanent Redirect

4XX - Client Error

Indicates an error on the client side. An example that we all face is when we enter the URL incorrectly. Examples:

400 - Bad Request
401 - Unauthorized
403 - Forbidden
404 - Not found

5XX - Server Error

Indicator an error on the server side. Examples:

500 - Internal Server Error
502 Bad Gateway
503 - Service Unavailable

Top comments (3)

Collapse
 
martipello profile image
martipello

What code is a teapot?

Collapse
 
glennmen profile image
Glenn Carremans

418! 😄
google.com/teapot

Collapse
 
rebaiahmed profile image
Ahmed Rebai

I think there is 204 used for delete or update