Fly with code

Get wet inside ocean of code

0%

HTTP Status Code

Status Code Definitions

Each Status-Code is described below, including a description of which method(s) it can follow and any metainformation required in the response

1xx

This class of status code indicates a provisional response, consisting only of the Status-Line and optional headers, and is terminated by an empty line. There are no required headers for this class of status code. Since HTTP/1.0 did not define any 1xx status codes, servers MUST NOT send a 1xx response to an HTTP/1.0 client except under experimental conditions.

2xx

This class of status code indicates that the client’s request was successfully received, understood, and accepted.

3xx

This class of status code indicates that further action needs to be taken by the user agent in order to fulfill the request. The action required MAY be carried out by the user agent without interaction with the user if and only if the method used in the second request is GET or HEAD. A client SHOULD detect infinite redirection loops, since such loops generate network traffic for each redirection.

4xx

The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

5xx

Response status codes beginning with the digit “5” indicate cases in which the server is aware that it has erred or is incapable of performing the request. Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. User agents SHOULD display any included entity to the user. These response codes are applicable to any request method.

Additional Knowledge

Status Code Definitions
網頁開發人員應了解的 HTTP 狀態碼