DEV Community

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

Posted on • Edited on

13 2

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

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay