DEV Community

Yamalab Design(Yuta)
Yamalab Design(Yuta)

Posted on

Types of HTTP Status Codes like 404? 503?

Types of HTTP Status Codes

HTTP status codes can be classified into the following five categories. The 100s, 200s, and 300s codes indicate that the communication between the browser and the server is working correctly and are not displayed on the site. It is necessary to be careful of the HTTP error codes called the 400s and 500s.

100s Informational

The 100s indicate that the request has been received and is being processed.

200s Success

The 200s indicate that the request has been received and processed successfully.

300s Redirection

The 300s indicate that additional processing is required to successfully process the request.

400s Client Error

The 400s indicate that the request from the client has failed. The four most common codes are:

  • 400 Bad Request: An error occurs in the request.
  • 401 Unauthorized: The user does not have access privileges to the site.
  • 403 Forbidden: The user is prohibited from accessing the site.
  • 404 Not Found: The site itself cannot be found.

500s Server Error

The 500s indicate that the server has failed to process the request. The two most common codes are:

  • 500 Internal Server Error: An error has occurred on the server.
  • 503 Service Unavailable: The server is unable to process the request due to heavy traffic.

How to Handle HTTP Error Codes

|| 400 Bad Request: An error occurred in the request. | Try using a different browser or device.

|| 401 Unauthorized: The user does not have access privileges to the site. | Verify membership registration information.

|| 403 Forbidden: The user is prohibited from accessing the site. | Check access privileges and access links.

|| 404 Not Found: The site itself cannot be found. | Verify the URL.

|| 500 Internal Server Error: An error occurred on the server. | Investigate the cause of the server error.

|| 503 Service Unavailable: The server is unable to process the request due to heavy traffic. | Reduce the load on the site or consider changing the server.

It is not a problem to intentionally delete a page and display an error code. However, if an error code is unexpectedly displayed on a page that should be displayed normally, such as 403 Forbidden, 500 Internal Server Error, and 503 Service Unavailable, carefully investigate the meaning of the code and handle it appropriately.

Top comments (0)