{
    "mode": "info",
    "parameter": "HTTP::Status",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/HTTP%3A%3AStatus/json",
    "generated": "2026-07-05T12:59:57Z",
    "synopsis": "use HTTP::Status qw(:constants :is statusmessage);\nif ($rc != HTTPOK) {\nprint statusmessage($rc), \"\\n\";\n}\nif (issuccess($rc)) { ... }\nif (iserror($rc)) { ... }\nif (isredirect($rc)) { ... }",
    "sections": {
        "NAME": {
            "content": "HTTP::Status - HTTP Status code processing\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 6.36\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use HTTP::Status qw(:constants :is statusmessage);\n\nif ($rc != HTTPOK) {\nprint statusmessage($rc), \"\\n\";\n}\n\nif (issuccess($rc)) { ... }\nif (iserror($rc)) { ... }\nif (isredirect($rc)) { ... }\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "HTTP::Status is a library of routines for defining and classifying HTTP\nstatus codes for libwww-perl.  Status codes are used to encode the\noverall outcome of an HTTP response message.  Codes correspond to those\ndefined in RFC 2616 and RFC 2518.\n",
            "subsections": []
        },
        "CONSTANTS": {
            "content": "The following constant functions can be used as mnemonic status code\nnames.  None of these are exported by default.  Use the \":constants\"\ntag to import them all.\n\nHTTPCONTINUE                        (100)\nHTTPSWITCHINGPROTOCOLS             (101)\nHTTPPROCESSING                      (102)\nHTTPEARLYHINTS                     (103)\n\nHTTPOK                              (200)\nHTTPCREATED                         (201)\nHTTPACCEPTED                        (202)\nHTTPNONAUTHORITATIVEINFORMATION   (203)\nHTTPNOCONTENT                      (204)\nHTTPRESETCONTENT                   (205)\nHTTPPARTIALCONTENT                 (206)\nHTTPMULTISTATUS                    (207)\nHTTPALREADYREPORTED                (208)\n\nHTTPIMUSED                         (226)\n\nHTTPMULTIPLECHOICES                (300)\nHTTPMOVEDPERMANENTLY               (301)\nHTTPFOUND                           (302)\nHTTPSEEOTHER                       (303)\nHTTPNOTMODIFIED                    (304)\nHTTPUSEPROXY                       (305)\nHTTPTEMPORARYREDIRECT              (307)\nHTTPPERMANENTREDIRECT              (308)\n\nHTTPBADREQUEST                     (400)\nHTTPUNAUTHORIZED                    (401)\nHTTPPAYMENTREQUIRED                (402)\nHTTPFORBIDDEN                       (403)\nHTTPNOTFOUND                       (404)\nHTTPMETHODNOTALLOWED              (405)\nHTTPNOTACCEPTABLE                  (406)\nHTTPPROXYAUTHENTICATIONREQUIRED   (407)\nHTTPREQUESTTIMEOUT                 (408)\nHTTPCONFLICT                        (409)\nHTTPGONE                            (410)\nHTTPLENGTHREQUIRED                 (411)\nHTTPPRECONDITIONFAILED             (412)\nHTTPPAYLOADTOOLARGE               (413)\nHTTPURITOOLONG                    (414)\nHTTPUNSUPPORTEDMEDIATYPE          (415)\nHTTPRANGENOTSATISFIABLE           (416)\nHTTPEXPECTATIONFAILED              (417)\nHTTPMISDIRECTED REQUEST             (421)\nHTTPUNPROCESSABLEENTITY            (422)\nHTTPLOCKED                          (423)\nHTTPFAILEDDEPENDENCY               (424)\nHTTPTOOEARLY                       (425)\nHTTPUPGRADEREQUIRED                (426)\nHTTPPRECONDITIONREQUIRED           (428)\nHTTPTOOMANYREQUESTS               (429)\nHTTPREQUESTHEADERFIELDSTOOLARGE (431)\nHTTPUNAVAILABLEFORLEGALREASONS   (451)\n\nHTTPINTERNALSERVERERROR           (500)\nHTTPNOTIMPLEMENTED                 (501)\nHTTPBADGATEWAY                     (502)\nHTTPSERVICEUNAVAILABLE             (503)\nHTTPGATEWAYTIMEOUT                 (504)\nHTTPHTTPVERSIONNOTSUPPORTED      (505)\nHTTPVARIANTALSONEGOTIATES         (506)\nHTTPINSUFFICIENTSTORAGE            (507)\nHTTPLOOPDETECTED                   (508)\nHTTPNOTEXTENDED                    (510)\nHTTPNETWORKAUTHENTICATIONREQUIRED (511)\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "The following additional functions are provided.  Most of them are\nexported by default.  The \":is\" import tag can be used to import all\nthe classification functions.\n\nstatusmessage( $code )\nThe statusmessage() function will translate status codes to human\nreadable strings. The string is the same as found in the constant\nnames above. If the $code is not registered in the list of IANA\nHTTP Status Codes <https://www.iana.org/assignments/http-status-\ncodes/http-status-codes.xhtml> then \"undef\" is returned.\n\nisinfo( $code )\nReturn TRUE if $code is an Informational status code (1xx).  This\nclass of status code indicates a provisional response which can't\nhave any content.\n\nissuccess( $code )\nReturn TRUE if $code is a Successful status code (2xx).\n\nisredirect( $code )\nReturn TRUE if $code is a Redirection status code (3xx). This class\nof status code indicates that further action needs to be taken by\nthe user agent in order to fulfill the request.\n\niserror( $code )\nReturn TRUE if $code is an Error status code (4xx or 5xx).  The\nfunction returns TRUE for both client and server error status\ncodes.\n\nisclienterror( $code )\nReturn TRUE if $code is a Client Error status code (4xx). This\nclass of status code is intended for cases in which the client\nseems to have erred.\n\nThis function is not exported by default.\n\nisservererror( $code )\nReturn TRUE if $code is a Server Error status code (5xx). This\nclass of status codes is intended for cases in which the server is\naware that it has erred or is incapable of performing the request.\n\nThis function is not exported by default.\n\niscacheablebydefault( $code )\nReturn TRUE if $code indicates that a response is cacheable by\ndefault, and it can be reused by a cache with heuristic expiration.\nAll other status codes are not cacheable by default. See RFC 7231 -\nHTTP/1.1 Semantics and Content, Section 6.1. Overview of Status\nCodes <https://tools.ietf.org/html/rfc7231#section-6.1>.\n\nThis function is not exported by default.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "IANA HTTP Status Codes <https://www.iana.org/assignments/http-status-\ncodes/http-status-codes.xhtml>\n",
            "subsections": []
        },
        "BUGS": {
            "content": "For legacy reasons all the \"HTTP\" constants are exported by default\nwith the prefix \"RC\".  It's recommended to use explicit imports and\nthe \":constants\" tag instead of relying on this.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Gisle Aas <gisle@activestate.com>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is copyright (c) 1994 by Gisle Aas.\n\nThis is free software; you can redistribute it and/or modify it under\nthe same terms as the Perl 5 programming language system itself.\n\nperl v5.32.1                      2022-01-06                 HTTP::Status(3pm)",
            "subsections": []
        }
    },
    "summary": "HTTP::Status - HTTP Status code processing",
    "flags": [],
    "examples": [],
    "see_also": []
}