Let’s learn about HTTP status codes

Sashini Hettiarachchi
3 min readSep 7, 2020
source: https://www.klaviyo.com/blog/ecommerce-404-pages

Hi All,

Welcome to learn HTTP status codes. The outline of the article is as follows,

  1. What are HTTP Status codes
  2. What are the different levels and their meanings

Ok then let’s start,

What is the HTTP Status Code?

HTTP standard for HyperText Transfer Protocol and mainly sending requests to the server and sending responses back to the client.

When we are sending a request and obtaining a response the response might be different such as the user might haven’t required authorization to access that particular resource, at that time the server should inform that message to the client. For that HTTP protocol is using HTTP status.

What are the different levels and their meanings?

There are 5 different classes/levels of HTTP status codes. They are as follows,

  1. 100–199 — Informational Responses
  2. 200- 299 — Successful Response
  3. 300- 399 — Redirects
  4. 400–499 — Client errors
  5. 500–599 — Server errors

What are the important status codes at different levels

Let’s learn the most important (everything is important :-), I mean commonly use) status codes with their meaning and practical examples.

Level 1XX — Informational Response

  • 100 — continue
  • 101 — switching protocols
  • 103 — early hints

Level 2XX — Successful Response

  • 200 — Ok
  • 201 — Created
  • 202 — Accepted
  • 203 — Non- Authorization Information
  • 204 — No content
  • 205 — Reset Content
  • 206 — Partial Content

Level 3XX — Redirects

  • 300 — Multiple choice
  • 301 — Moved permanently
  • 302 — Found
  • 303 — See other
  • 304 — Not modified
  • 307 — Temporary redirect
  • 308 — Permanent redirect

Level 4XX — Client error

  • 400 — Bad request
  • 401 — Unauthorized
  • 403 — forbidden
  • 404 — Not found
  • 405 — Method not allowed
  • 406 — Not acceptable
  • 407 — Proxy authentication required
  • 408 — Request time out
  • 409 — conflicts
  • 410 — Gone
  • 411 — Length required
  • 412 — Precondition Failed
  • 413 — Payload Too Large
  • 414 — URI Too Long
  • 415 — Unsupported media type
  • 416 — range not satisfiable
  • 425 — Too early
  • 429 — too many requests
  • 431 — Request header fields too large
  • 451 — unavailable for legal reasons

Level 5XX — Server errors

  • 500 — internal Server Error
  • 501 — Not implemented
  • 502 — Bad Gateway
  • 503 — Service Unavailable
  • 504 — Gateway Timeout
  • 505 — HTTP Version Not supported
  • 510 — Not Extended
  • 511 — Network Authentication Required

Summary

In this article, I was trying to teach you about HTTPS status code with their levels.

References:

--

--