To request a 410 Gone status return, a resource does not need to have a forwarding address, and it should be considered lost forever. This is the main difference between a 404 not found error, because in the case of a 404 error, the server does not know if the resource might be available again in the future. October 4, 2018
HTTP response status codes indicate whether a particular HTTP request was successful. The answers are divided into five classes:
- Informational Responses (
- Successful replies (
- Redirects (
- Client error (
- Server error (
The following status codes are defined in Section 10 of RFC 2616. An updated specification can be found in RFC 7231.
If you receive a response that is not on this list, this is a non-standard response that can be customized for the server software.
- This provisional response indicates that everything is fine for now and that the client should either continue with the request, or ignore the response if the request has already completed.
Switch Protocol 101
- This code is sent in response to the
Upgraderequest header from the client and indicates the protocol to which the server fails over.
- This code indicates that the server has received and processed the request, but there is no response yet.
First 103 Notes
- This status code is primarily intended for use with the
Linkheader so that the user agent can preload resources while the server prepares the response.
- The request was successful. The importance of success depends on the HTTP method:
GET: The resource was received and sent in the body of the message.
HEAD: Entity headers are found in the body of the message.
POST: the resource describing the result of the action is passed in the message body.
TRACE: The message body contains the request message received from the server.
- The request was successful, so a new resource was created. Typically, this is the response sent after
POSTrequests or specific
- Request received but not yet processed. This is optional because in HTTP there is no way to send an async latera single response that contains the result of the request. It is intended for use when another process or server is processing a request, or for batch processing.
203 Unverified information
- This response code means that the returned meta information does not exactly match what is available on the origin server, but comes from a local or third party copy. This is mainly used for mirrors or backups of another resource. Except in this particular case, a 200 OK response is preferred in this state.
204 No content
- This request does not have to send any content, but headers can be useful. The user agent can update their cached headers for this resource with new ones.
205 Reset Content
- Instructs the user agent to restore the document that made this request.
206 partial content
- This response code is used when the
Rangeheader is sent by the client to request only a portion of a resource.
207 s Multi-state(WebDAV)
- Provides information about multiple resources for situations where multiple status codes may be required.
208 Already Registered(WebDAV)
- Used in the
226 IM uses(HTTP delta encoding)
- The server granted a
GETrequest for a resource, and the response is a representation of the result of one or more instance manipulations applied to the current instance.
300 Multiple Choice
- A request has more than one possible response. The user agent or user must choose one of them. (There is no standard way to select one of the answers, but HTML links to options are recommended to the user.)
301 moved permanently
- The URL of the requested resource has been permanently changed. The new URL will be indicated in the response.
- This code is fromveta means that the URI of the requested resource has been temporarily changed. Other URI changes may be made in the future. Hence, the client must use the same URI for future requests.
303 See others
- The server sent this response to ask the client to send the requested resource to a different URI with a GET request.
- Used for caching. It informs the client that the response has not changed, so the client can continue to use the same cached version of the response.
305 Use proxy
- Defined in an earlier version of the HTTP specification to indicate that a proxy server should access the requested response. It has become obsolete due to security issues related to the internal proxy configuration.
306 not used
- This response code is no longer used. it’s just reserved. It was used in an earlier version of the HTTP / 1.1 specification.
307 Temporary Redirect
- The server sends this response to ask the client to receive the requested p A course on a different URI using the same method as in the previous request. It has the same semantics as the
302 FoundHTTP response code, except that the user agent is not allowed to change the HTTP method used: if
POSTwas used in the first
POSTshould be used in the second request.
308 Permanent Redirect
- This means that the resource is now permanently under a different URI, as indicated by the
Location:HTTP response header. It has the same semantics as the HTTP response code
301 Permanently Offset, except that the user agent is not allowed to change the HTTP method used: if
POSTwas used in For the first request the second request should use
Answers To Client Errors
400 bad request
- The server cannot understand the request due to invalid syntax.
- Although the HTTP standard states “unauthorized”, this response semantically means “unauthorized”. In other words, the client mustIt will be authenticated to receive the requested response.
402 payment required
- This response code is reserved for future use. The original purpose of creating this code was to use it in digital payment systems. However, this status code is rarely used and there is no standard convention.
- The client does not have permission to access the content. In other words, it is not authorized, so the server refuses to provide the requested resource. Unlike 401, the identity of the client is known to the server.
404 not found
- The server cannot find the requested resource. In the browser, this means the URL is not recognized. In the API, this can also mean that the endpoint is valid, but the resource itself does not exist. Servers can also send this response instead of 403 to hide the existence of the resource from an unauthorized client. This response code is probably the best known due to its frequent appearance on the Internet.
405 method forbidden
- The request method is known to the server, but it is disabled and not can be used. For example, the API can prevent the deletion of a resource. The two required methods
HEADshould never be disabled and should not return this error code.
406 Not Acceptable
- This response is sent if the web server does not find any content that matches the criteria specified by the user agent after performing server-managed content negotiation.
407 Proxy Authentication Required
- This is similar to 401, but authentication must be done through a proxy.
Request timeout 408
- This response will be transmitted