HTTP - Status Code

HTTP - Status Code

About

The status code is the exit code of request returned to the client via the first line of a response.

For example:

  • a file not found error is a 404 code,
  • a server error is equivalent to a 5xx code.

Cheatsheet

HTTP status When to use
200 to 299, inclusive A successful response or ok status.
301 / 302 The page has moved to a new URL - a redirection (301, 302, 303, 307, or 308)
4xx - an error caused by the processing of the request (request processing error)
401 / 403 The page is unavailable due to permission issues.
404 / 410 The page is no longer available.
5xx Something went wrong on the server side (server error).
xxx Other protocols based on HTTP can define additional status codes.

A null body status is a status that is 101, 204, 205, or 304.

A status is an integer in the range 0 to 999, inclusive.

The full list of possible status codes can be found in the HTTP specification (RFC 2616 section 10).

Check Provider

Documentation / Reference





Discover More
Chrome Devtool Xhr Fetch Request
Browser - XMLHttpRequest (XHR) API

The XMLHttpRequest is a web api function that performs an resource fetch with an Aysnchronous HTTP request XMLHttpRequestAPIAJAX programmingfetch API The status of an XHR request. Value Constant...
Firefox Browser Cache
Browser Cache - Management and usage

How to clear and manage the browser cache.
Card Puncher Data Processing
Dokuwiki - Error internal 500 on php

When upgrading a dokuwiki installation, you may get a 500 internal server error page. This is caused mostly by a syntax error somewhere in the code of a plugin. From the command line, you can check...
HTTP - Accept header

accept is a request header that specify the mimes type of the response body that are accepted by the client (ie browser) If no Accept header field is present, then it is assumed that the client accepts...
Http Status 304 Chrome Devtool
HTTP - Redirect (status codes 3xx) - Client must take additional action

The HTTP 3xx class of status code indicates that the client (user or user agent) must take additional action to complete the request. The redirect url is defined by the location header. A user agent...
HTTP - Response

An HTTP response is a message sent from a server to a client in response to a request. It's the second part of a fetch, the first being a request. Example of a response that returns an HTML document...
HTTP Header - If-Modified-Since

If-Modified-Since is a request HTTP header that make the creation of the response body conditional. If the requested resource has not been modified since the time specified in this field, a 304 (not modified)...
Chrome Devtool Network 304
How to implement and check a Web / HTTP cache ?

Implementing and verifying that the HTTP cache is set and working properly is not a straightforward task. This article gives you a step by step.
Data System Architecture
Logging - Level

The level of a log message dictates it severity. syslog (5424RFC5424) specifies that the order of severity is assumed to be numerically ascending from most important to least important. Example:...
Nginx - HTTP Request Processing

How nginx process a HTTP request nginx first decides which server should process the request with: The request’s header field “Host”. If its value does not match any server name, or the request...



Share this page:
Follow us:
Task Runner