HTTP Status Code

by Rikky
2 minutes

While we do searching activity on internet (typically we use Search Engine to get specific information by typing a keyword), we may open few different sites to find specific information that we need. Every we open the sites, we'll request resources that must be return / delivered from server by web server to client (us). Every request that we made might call some resources from same server or different server, the web server will return response code that represent status of the resource that requested.

To sum all response code, we can understand that :

  1. 100 - 199 : Informational
  2. 200 - 299 : Success
  3. 300 - 399 : Redirection
  4. 400 - 499 : Client error
  5. 500 - 599 : Server error

For most popular HTTP response we'll find below HTTP response code:

  1. 200 ( Ok ), the request was success and return the expected response (that means the server and the resource that accessed by client is able to return the correct data.
  2. 404 ( Not Found ), the requested resource is not available to be served to client.
  3. 301 ( Moved Permanently ), the target resource or site is permanently redirected to new destination.
  4. 302 ( Temporary Redirect ), the site is temporarily redirected to other page or sites (usually used if the site is under maintenance)/
  5. 500 ( Internal Server Error ), this error indicates that there is something went wrong from the server.
  6. 503 ( Service Unavailable ), indicates that the server is unavailable, we may come back later, this might happen while the new service is being deployed or the sites is under maintenance.