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

Video API: manage, encode, and optimize for any device, channel or network condition. Deliver branded video experiences in minutes and get deep engagement insights.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay