source: Validate External Links/http_codes.txt@ 1132

Last change on this file since 1132 was 1127, checked in by iritscen, 5 years ago

Val now counts redirects from youtu.be to youtube.com as OK links. These links will be reported on if the argument --show-yt-redirects is used. Renamed --show-https-upgrade to --show-https-upgrades for consistency. Also sorted the file and page suffix arrays and added some more items to them. Now handling status codes 400, 418, 502 and 530. Fixed incorrect nbsps in HTML report. Val is no longer confused by URLs ending in '(' or ')', or which contain a '%' towards the end.

File size: 3.9 KB
RevLine 
[1064]1==HTTP Response Status Code Reference==
2For use with ValExtLinks script (http://wiki.oni2.net/ValExtLinks).
[1068]3Only codes understood by ValExtLinks are listed here.
[1064]4Source: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
5
6
7--2xx: Success--
8This class of status codes indicates the action requested by the client was received, understood, accepted, and processed successfully.
9
10200 OK
11 Standard response for successful HTTP requests.
12
13
14--3xx: Redirection--
15This class of status code indicates the client must take additional action to complete the request. Many of these status codes are used in URL redirection.
16
17301 Moved Permanently
18 This and all future requests should be directed to the given URI.
19
20302 Found
21 This is an example of industry practice contradicting the standard. The HTTP/1.0 specification required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily"), but popular browsers implemented 302 with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307 to distinguish between the two behaviors. However, some Web applications and frameworks use the 302 status code as if it were the 303.
22
[1068]23303 See Other
24 The response to the request can be found under another URI using a GET method.
25
[1064]26307 Temporary Redirect
27 The request should be repeated with another URI; however, future requests should still use the original URI.
28
[1068]29308 Permanent Redirect
30 The request and all future requests should be repeated using another URI.
[1064]31
[1068]32
[1064]33--4xx: Client Errors--
34The 4xx class of status codes is intended for situations in which the client seems to have erred.
35
[1127]36400 Bad Request
37 The server cannot or will not process the request due to an apparent client error (e.g., malformed request syntax).
38
[1064]39401 Unauthorized
40 Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.
41
42403 Forbidden
43 The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource.
44
45404 Not Found
46 The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.
47
48405 Method Not Allowed
49 A request method is not supported for the requested resource; for example, a GET request on a form that requires data to be presented via POST, or a PUT request on a read-only resource.
50
51406 Not Acceptable
52 The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.
53
54410 Gone
55 Indicates that the resource requested is no longer available and will not be available again. This should be used when a resource has been intentionally removed and the resource should be purged. Upon receiving a 410 status code, the client should not request the resource in the future.
56
[1127]57418 I'm a teapot
58 This is a joke response code used by some sites. Probably equivalent to a 200.
[1064]59
[1127]60
[1064]61--5xx: Server Errors--
[1069]62The server failed to fulfill an apparently valid request.
[1064]63
64500 Internal Server Error
65 A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.
66
67501 Not Implemented
68 The server either does not recognize the request method, or it lacks the ability to fulfill the request. Usually this implies future availability (e.g., a new feature of a web-service API).
69
[1127]70502 Bad Gateway
71 The server was acting as a gateway or proxy and received an invalid response from the upstream server.
72
[1064]73503 Service Unavailable
[1127]74 The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state.
75
76530 Site is frozen
77 Some Internet companies use this to indicate that a site is down, but usage is non-standard, so the site will have to be tried again later to see if the outage is due to a frozen account or something else.
Note: See TracBrowser for help on using the repository browser.