HTTP Status Codes, Error Messages - Yash-777/SteamingServlet GitHub Wiki

Hypertext Transfer Protocol (HTTP) response status codes. wiki

Status codes are issued by a server in response to a client's request made to the server.

Request methods

HTTP functions as a request–response protocol in the client–server computing model. A web browser, for example, may be the client and an application running on a computer hosting a website may be the server. The client submits an HTTP request message to the server. The server, which provides resources such as HTML files and other content, or performs other functions on behalf of the client, returns a response message to the client. The response contains completion status information about the request and may also contain requested content in its message body.

The HTTP/1.0 specification defined the GET, HEAD and POST methods and the HTTP/1.1 specification added five new methods: OPTIONS, PUT, DELETE, TRACE and CONNECT.

100 Continue
101 Switching Protocols
102 Processing (WebDAV)
103 Checkpoint

Status Code Definitions:

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

Informational 1xx - The request was received, continuing process

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. HTTP/1.0 does not define any 1xx status codes and they are not a valid response to a HTTP/1.0 request. However, they may be useful for experimental applications which are outside the scope of this specification.


Successful 2xx - The request was successfully received, understood, and accepted

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

200 OK
201 Created
202 Accepted
203 Non-Authoritative Information
204 No Content
205 Reset Content
206 Partial Content
207 Multi-Status
208 Already Reported

218 This is fine (Apache Web Server)

226 IM Used

Redirection 3xx - Further action needs to be taken in order to complete the request

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 subsequent request is GET or HEAD. A user agent should never automatically redirect a request more than 5 times, since such redirection's usually indicate an infinite loop.

300 Multiple Choices
301 Moved Permanently
302 Found (Previously "Moved temporarily")
303 See Other (since HTTP/1.1)
304 Not Modified
305 Use Proxy
306 Switch Proxy
307 Temporary Redirect
308 Permanent Redirect

Client Error 4xx - The request contains bad syntax or cannot be fulfilled

The 4xx class of status code is intended for cases in which the client seems to have erred. If the client has not completed the request when a 4xx code is received, it should immediately cease sending data to the server. 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. These status codes are applicable to any request method.

  • 404 - Page Not Found

Source form this link paysafe.com

stackoverflow.com « We're sorry, we couldn't find the page you requested.
github.com        « This is not the web page you are looking for
paysafe.com       « I'm sorry, we can't find the page you were looking for.
The page cannot be found. This may be due to a bad link, the page being moved,
or the product you selected being unavailable in your region. Our sincerest apologies.
400 Bad Request
401 Unauthorized
402 Payment Required
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable
407 Proxy Authentication Required
408 Request Timeout
409 Conflict
410 Gone
411 Length Required
412 Precondition Failed
413 Request Entity Too Large
414 Request-URI Too Long
415 Unsupported Media Type
416 Requested Range Not Satisfiable
417 Expectation Failed
418 I'm a teapot
419 Page Expired (Laravel Framework)
420 Method Failure (Spring Framework) | Enhance Your Calm (Twitter)

421 Misdirected Request - Site `https://pool.sks-keyservers.net/` is not served on this interface
422 Unprocessable Entity
423 Locked
424 Failed Dependency

426 Upgrade Required

428 Precondition Required
429 Too Many Requests

431 Request Header Fields Too Large

440 Login Time-out

449 Retry With
450 Blocked by Windows Parental Controls (Microsoft)
451 Unavailable For Legal Reasons | Redirect

498 Invalid Token (Esri)
499 Token Required (Esri)

Server Error 5xx - The server failed to fulfill an apparently valid request

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. If the client has not completed the request when a 5xx code is received, it should immediately cease sending data to the server. 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. These response codes are applicable to any request method and there are no required header fields.

500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable - http://www.grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/8-b132/java/util/concurrent/Callable.java
504 Gateway Timeout
505 HTTP Version Not Supported
506 Variant Also Negotiates
507 Insufficient Storage
508 Loop Detected
509 Bandwidth Limit Exceeded (Apache Web Server/cPanel)
510 Not Extended
511 Network Authentication Required

521 Web Server Is Down
526 Invalid SSL Certificate

530 Site is frozen | Origin DNS Error

598 (Informal convention) Network read timeout error

Example: School/Hostel person came to see. Hospital/Bank tokens.

Parents came to pick his child from the school

Client(Person)                 Server(School)

1.0 Relative 1.1 Parent - Call
    1XX --->---------student S1-------------Child (S2 some body came, S1 said to me please go Child)
    2XX --->-----------------------Teacher he will come after completing the class
    3XX ---> 4th class raju ------------Teacher he is in B-Section
        <---<-4th B-Sec class raju----<--
        --->-4th B-Sec class raju--------
    4XX --->---------Nobody is their with that name in this school 
        --->---------Authenticate - Only parent can take him. 401, 406
    5XX --->---------he is in ground, not came today 503.
        --->---------it is not possible today to see, cm tomorrow 503, 509.

What are HTTP status codes?

HTTP status codes are three-digit responses from the server to the browser-side request. Everyone has probably gotten the classic 404 page-not-found error. That is an HTTP client error status code and there are a lot more of them.

Status code Meaning
1xx Informational  
100 Continue
101 Switching protocols
102 Processing
103 Early Hints
   
2xx Succesful  
200 OK
201 Created
202 Accepted
203 Non-Authoritative Information
204 No Content
205 Reset Content
206 Partial Content
207 Multi-Status
208 Already Reported
226 IM Used
   
3xx Redirection  
300 Multiple Choices
301 Moved Permanently
302 Found (Previously "Moved Temporarily")
303 See Other
304 Not Modified
305 Use Proxy
306 Switch Proxy
307 Temporary Redirect
308 Permanent Redirect
   
4xx Client Error  
400 Bad Request
401 Unauthorized
402 Payment Required
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable
407 Proxy Authentication Required
408 Request Timeout
409 Conflict
410 Gone
411 Length Required
412 Precondition Failed
413 Payload Too Large
414 URI Too Long
415 Unsupported Media Type
416 Range Not Satisfiable
417 Expectation Failed
418 I'm a Teapot
421 Misdirected Request
422 Unprocessable Entity
423 Locked
424 Failed Dependency
425 Too Early
426 Upgrade Required
428 Precondition Required
429 Too Many Requests
431 Request Header Fields Too Large
451 Unavailable For Legal Reasons
   
5xx Server Error  
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported
506 Variant Also Negotiates
507 Insufficient Storage
508 Loop Detected
510 Not Extended
511 Network Authentication Required
⚠️ **GitHub.com Fallback** ⚠️