Validate External Links/HTTP codes: Difference between revisions

added what 403 usually means
(adding 429)
(added what 403 usually means)
 
(2 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__
__NOTOC__
==2xx: Success==
==2xx: Success==
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 69: 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