Jump to content

Validate External Links/HTTP codes: Difference between revisions

added codes 204 and 402
m (removed __NOTOC__ directive)
(added codes 204 and 402)
 
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. The following list is a greatly shortened version of [[wp:List of HTTP status codes|Wikipedia's list]] containing only the codes understood by ValExtLinks. When no HTTP response could be retrieved by the Unix tool 'curl' which ValExtLinks uses to 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]].


==2xx: Success==
==2xx: Success==
Line 9: Line 9:
;202 Accepted
;202 Accepted
:The HTTP request has been accepted for processing, but may not be successful.
:The HTTP request has been accepted for processing, but may not be successful.
;204 No Content
:The request is valid but the server will not return any content for it. This is supposed to mean that the browser's previously cached version of the page can be used. For some reason (probably bot detection), YouTube is now returning code 204 for every video link on our wiki.


==3xx: Redirection==
==3xx: Redirection==
Line 36: Line 39:
;401 Unauthorized
;401 Unauthorized
:Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.
:Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.
;402 Payment Required
:Used by some sites to indicate that there is a subscription paywall or insufficient funds to continue using the site.


;403 Forbidden
;403 Forbidden