Appendix B. HTTP Status Codes

You can find a detailed explanation of each status code in RFC 2616 (Hypertext Transfer Protocol—HTTP/1.1) at http://www.rfc-editor.org.

100s: Informational

If an LWP request gets either of these rarely used codes, $response->is_info will be true. For all other status codes, $response->is_info will be false.

100 Continue
101 Switching Protocols

200s: Successful

If an LWP request gets any of these codes, $response->is_success will be true. For all other status codes, $response->is_success will be false.

200 OK
201 Created
202 Accepted
203 Non-Authoritative Information
204 No Content
205 Reset Content
206 Partial Content

300s: Redirection

If an LWP request gets any of these codes, $response->is_redirect will be true. For all other status codes, $response->is_redirect will be false.

300 Multiple Choices
301 Moved Permanently
302 Found
303 See Other
304 Not Modified
305 Use Proxy
307 Temporary Redirect

400s: Client Errors

If an LWP request gets any of these 400-series codes, $response->is_error will be true, as it will be for any of the 500-series codes. For all other status codes, $response->is_error will be false.

400 Bad Request 401 Unauthorized 402 Payment Required 403 Forbidden 404 Not Found 405 Method Not Allowed 406 Not Acceptable 407 Proxy Authentication Required 408 Request Timeout 409 Conflict 410 Gone 411 Length Required 412 Precondition Failed 413 Request Entity Too Large 414 Request-URI Too Long 415 Unsupported Media Type 416 Requested Range Not Satisfiable ...

Get Perl & LWP now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.