Validate External Links/HTTP codes: Difference between revisions

m
removed __NOTOC__ directive
m (wording)
m (removed __NOTOC__ directive)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
ValExtLinks prints the HTTP response code for each link (except EI and IW links) in parentheses after the OK/NG/RD status of the link. Based on [[wp:List_of_HTTP_status_codes|this Wikipedia list]], following are the codes understood by ValExtLinks. When no HTTP response could be retrieved by the Unix tool 'curl' which queries each link, you'll see "(000-xx)", where the one- or two-digit number after the dash is the [[../Curl codes|'curl' error code]].
ValExtLinks prints the HTTP response code for each link (except EI and IW links) in parentheses after the OK/NG/RD status of the link. Based on [[wp:List of HTTP status codes|this Wikipedia list]], following are the codes understood by ValExtLinks. When no HTTP response could be retrieved by the Unix tool 'curl' which queries each link, you'll see "(000-xx)", where the one- or two-digit number after the dash is the [[../Curl codes|'curl' error code]].
__NOTOC__
 
==2xx: Success==
==2xx: Success==
This class of status codes indicates the action requested by the client was received, understood, accepted, and processed successfully.
This class of status codes indicates the action requested by the client was received, understood, accepted, and processed successfully.
Line 6: Line 6:
;200 OK
;200 OK
:Standard response for successful HTTP requests.
:Standard response for successful HTTP requests.
;202 Accepted
:The HTTP request has been accepted for processing, but may not be successful.


==3xx: Redirection==
==3xx: Redirection==
Line 35: Line 38:


;403 Forbidden
;403 Forbidden
:The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource.
:The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource, but most commonly this is caused by Cloudflare detecting that a bot is attempting to access a site. There is no workaround for this with the current ValExtLinks script, so add the URL to the [[../Exceptions|Exceptions list]] and move on.


;404 Not Found
;404 Not Found
Line 51: Line 54:
;418 I'm a teapot
;418 I'm a teapot
:This is a joke response code used by some sites. Probably equivalent to a 200.
:This is a joke response code used by some sites. Probably equivalent to a 200.
;429 Too Many Requests
:The user has sent too many requests in a given amount of time. Intended for use with rate-limiting schemes.


==5xx: Server Errors==
==5xx: Server Errors==
Line 66: Line 72:
;503 Service Unavailable
;503 Service Unavailable
:The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state.
:The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state.
;520 Unknown error
:A site had an unexpected/invalid interaction with Cloudflare.


;530 Site is frozen
;530 Site is frozen