Common HTTP status codes and error analysis

Status codes several categories: Category reason appears response status code (see below for analysis)

status code Response categories The reason
1XX Informational status codes (Informational) Server is processing the request
2XX Successful status code (Success)     Request has been processed normally
3XX  Redirect status (Redirection) Additional operations required to complete the request
4XX         Client Error status code (Client Error) The client causes the server to process the request
5XX         Server Error status code (Server Error) Server causes an error processing the request

Success class

Beginning 2 (request successful) expressed successfully processed the request status code

200 (success) server has successfully processed the request. Typically, this means that the server provided the requested page
201 (Created) request was successful and the server created a new resource
202 (Accepted) The server has accepted the request, but has not yet processed
203 (Non-authoritative information) The server successfully processed the request, However, the returned information may come from another source
204 (content) server successfully processed the request, but not returning any content
205 (reset content) server successfully processed the request, but not returning any content
206 (partial content) server successfully processed partial GET request

# Informational.    
    200: ('ok', 'okay', 'all_ok', 'all_okay', 'all_good', '\\o/', '✓'),
    201: ('created',),
    202: ('accepted',),
    203: ('non_authoritative_info', 'non_authoritative_information'),
    204: ('no_content',),
    205: ('reset_content', 'reset'),
    206: ('partial_content', 'partial'),
    207: ('multi_status', 'multiple_status', 'multi_stati', 'multiple_stati'),
    208: ('already_reported',),
    226: ('im_used',)

Redirect class

3 at the beginning (the request is redirected) to fulfill the request indicates the need for further operations. Typically, these status codes for redirection

300 (choice) for the request, the server may perform various operations. The server may select an operation requestor (user agent)
301 (Moved Permanently) requested page has been permanently moved to a new location in response to a GET or HEAD request, the requester will be automatically transferred to the new position
302 (Temporary Mobile) server is currently responding to the request page from a different location, but the requestor should continue to use the original location for future requests
303 (see other location) requestor should make a separate GET request to retrieve a response to a different location, the server returns this Code
304 (Not Modified) since the last request, the requested page has not been modified. When the server returns this response, it does not return the page content
305 (use proxy) The requestor can only access the requested page using a proxy. If the server returns this response, it said requester should use agents
307 (temporary redirect) server response to a request from a web page different from the current position, but the requestor should continue to use the original location for future requests

 # Redirection.
    300: ('multiple_choices',),
    301: ('moved_permanently', 'moved', '\\o-'),
    302: ('found',),
    303: ('see_other', 'other'),
    304: ('not_modified',),
    305: ('use_proxy',),
    306: ('switch_proxy',),
    307: ('temporary_redirect', 'temporary_moved', 'temporary'),
    308: ('permanent_redirect',
          'resume_incomplete', 'resume',)

Request Error class

4 beginning (Request error) These status codes indicate that the request may be wrong, the processing server hampered

400 (Bad Request) server did not understand the request syntax
401 (Unauthorized) The request requires authentication for login-protected pages, the server might return this response
403 (Prohibition) server rejects the request
404 (not found) server can not find the requested page
405 (disabling) the method specified in the request is disabled
406 (not accept) the requested page is not using the characteristic response content request
407 (proxy Authentication required) this status code 401 (not authorized), the authorization specifies that the requestor use a proxy
408 (request timeout) timeout occurred while waiting for the request server
conflict 409 (conflict) occurs when the server to complete the request. The server must contain the conflict in the response information
410 (deleted) if the requested resource has been permanently removed, the server returns this response
411 (length) of the server does not accept the request without a valid Content-Length header field
412 ( precondition Failed) where the server is not a prerequisite for the requester provided on the request
413 (request entity too large) server can not process the request because it is too large for the server to handle the
URI 414 is too long (requested) the request URI (typically, a URL) is too long, the server can not handle
415 (media types are not supported) requested format not request support page
416 (requested range not satisfiable) if the page is unable to provide the requested range, the server returns this status code
417 (expected value) server can not meet "desired" request-header field requirements

 # Client Error.
    400: ('bad_request', 'bad'),
    401: ('unauthorized',),
    402: ('payment_required', 'payment'),
    403: ('forbidden',),
    404: ('not_found', '-o-'),
    405: ('method_not_allowed', 'not_allowed'),
    406: ('not_acceptable',),
    407: ('proxy_authentication_required', 'proxy_auth', 'proxy_authentication'),
    408: ('request_timeout', 'timeout'),
    409: ('conflict',),
    410: ('gone',),
    411: ('length_required',),
    412: ('precondition_failed', 'precondition'),
    413: ('request_entity_too_large',),
    414: ('request_uri_too_large',),
    415: ('unsupported_media_type', 'unsupported_media', 'media_type'),
    416: ('requested_range_not_satisfiable', 'requested_range', 'range_not_satisfiable'),
    417: ('expectation_failed',)

Server Error class

5 beginning (Server Error) indicates that the server internal error occurred while trying to process the request, these errors could be wrong server itself
500 (Internal Server Error) The server encountered an error and can not fulfill the request
501 (not yet implemented) server does not have to fulfill the request Features. For example, this code may be returned when the server can not recognize the request method
502 (Bad gateway) as a gateway or proxy server received an invalid response from the upstream server
503 (service unavailable) server is currently unavailable (because it is overloaded or down for maintenance). Typically, this is a temporary state
504 (Gateway timeout) server as a gateway or a proxy, but did not receive a request from the upstream server
505 (HTTP Version not supported) server does not support HTTP protocol version used in the request

# Server Error.
    500: ('internal_server_error', 'server_error', '/o\\', '✗'),
    501: ('not_implemented',),
    502: ('bad_gateway',),
    503: ('service_unavailable', 'unavailable'),
    504: ('gateway_timeout',),
    505: ('http_version_not_supported', 'http_version'),
    506: ('variant_also_negotiates',),
    507: ('insufficient_storage',),
    509: ('bandwidth_limit_exceeded', 'bandwidth'),
    510: ('not_extended',),
    511: ('network_authentication_required', 'network_auth', 'network_authentication')


Published 35 original articles · won praise 16 · views 190 000 +

Guess you like