A status code is a three-digit code that shows what the web page looks like.
The browser that receives the status code sent from the server looks at the number and selects the next action.
Status codes are broadly divided into five categories, with the first one of the three-digit number representing that category.
1xx is information 2xx is successful 3xx is redirect 4xx is client error 5xx is in server error category.
List of frequent status codes
Status code when there is no problem. When this is returned, normal HTML is displayed as is.
301: Moved Permanently
This is a status code indicating that the accessed page has been permanently moved. When this is returned, the URL of the destination will be a set in the form of Location: http: // ***.
This is a status code indicating that the accessed page is temporarily moved. As with 301, this also has a Location header. It used to be called Moved Temporarily, but it has been renamed, and status codes such as 303 and 307 have been created.
Status code when access to the Forbidden page is prohibited. It is often displayed when the access right etc. of the file is misconfigured.
404: Not Found
Status code when the page does not exist. It is often displayed when you make a mistake in entering the URL.
500: Internal Server Error
This is a status code that reports an error inside the server. It is often displayed when thescript is written incorrectly or the .htaccess settings are incorrect.
503: Service Unavailable
Status code indicating that the service is unavailable. This is displayed when a server-related problem occurs not with a program, such as when the server has excessive access.