Jump to content

Validate External Links/HTTP codes: Difference between revisions

added what 403 usually means
(added 202)
(added what 403 usually means)
 
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 38: 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