JS Utils Kit
    Preparing search index...

    Variable HTTP_STATUSConst

    HTTP_STATUS: {
        ACCEPTED: 202;
        ALREADY_REPORTED: 208;
        BAD_GATEWAY: 502;
        BAD_REQUEST: 400;
        BANDWIDTH_LIMIT_EXCEEDED: 509;
        CONFLICT: 409;
        CONTINUE: 100;
        CREATED: 201;
        EARLY_HINTS: 103;
        EXPECTATION_FAILED: 417;
        FAILED_DEPENDENCY: 424;
        FORBIDDEN: 403;
        FOUND: 302;
        GATEWAY_TIMEOUT: 504;
        GONE: 410;
        HTTP_VERSION_NOT_SUPPORTED: 505;
        IM_A_TEAPOT: 418;
        IM_USED: 226;
        INSUFFICIENT_STORAGE: 507;
        INTERNAL_SERVER_ERROR: 500;
        LENGTH_REQUIRED: 411;
        LOCKED: 423;
        LOOP_DETECTED: 508;
        METHOD_NOT_ALLOWED: 405;
        MISDIRECTED_REQUEST: 421;
        MOVED_PERMANENTLY: 301;
        MULTI_STATUS: 207;
        MULTIPLE_CHOICES: 300;
        NETWORK_AUTHENTICATION_REQUIRED: 511;
        NO_CONTENT: 204;
        NON_AUTHORITATIVE_INFORMATION: 203;
        NOT_ACCEPTABLE: 406;
        NOT_EXTENDED: 510;
        NOT_FOUND: 404;
        NOT_IMPLEMENTED: 501;
        NOT_MODIFIED: 304;
        OK: 200;
        PARTIAL_CONTENT: 206;
        PAYLOAD_TOO_LARGE: 413;
        PAYMENT_REQUIRED: 402;
        PERMANENT_REDIRECT: 308;
        PRECONDITION_FAILED: 412;
        PRECONDITION_REQUIRED: 428;
        PROCESSING: 102;
        PROXY_AUTH_REQUIRED: 407;
        RANGE_NOT_SATISFIABLE: 416;
        REQUEST_HEADER_FIELDS_TOO_LARGE: 431;
        REQUEST_TIMEOUT: 408;
        RESET_CONTENT: 205;
        SEE_OTHER: 303;
        SERVICE_UNAVAILABLE: 503;
        SWITCHING_PROTOCOLS: 101;
        TEMPORARY_REDIRECT: 307;
        TOO_EARLY: 425;
        TOO_MANY_REQUESTS: 429;
        UNAUTHORIZED: 401;
        UNAVAILABLE_FOR_LEGAL_REASONS: 451;
        UNPROCESSABLE_ENTITY: 422;
        UNSUPPORTED_MEDIA_TYPE: 415;
        UPGRADE_REQUIRED: 426;
        URI_TOO_LONG: 414;
        USE_PROXY: 305;
        VARIANT_ALSO_NEGOTIATES: 506;
    } = ...

    Common HTTP status codes.

    Type Declaration

    • ReadonlyACCEPTED: 202

      Request accepted but not yet processed

    • ReadonlyALREADY_REPORTED: 208

      WebDAV: Already reported

    • ReadonlyBAD_GATEWAY: 502

      Bad gateway

    • ReadonlyBAD_REQUEST: 400

      Invalid request syntax

    • ReadonlyBANDWIDTH_LIMIT_EXCEEDED: 509

      Bandwidth limit exceeded

    • ReadonlyCONFLICT: 409

      Request conflict

    • ReadonlyCONTINUE: 100

      Request received, continuing process

    • ReadonlyCREATED: 201

      Resource successfully created

    • ReadonlyEARLY_HINTS: 103

      Early hints before final response

    • ReadonlyEXPECTATION_FAILED: 417

      Expectation failed

    • ReadonlyFAILED_DEPENDENCY: 424

      Failed dependency

    • ReadonlyFORBIDDEN: 403

      Access forbidden

    • ReadonlyFOUND: 302

      Resource found at a different URI

    • ReadonlyGATEWAY_TIMEOUT: 504

      Gateway timeout

    • ReadonlyGONE: 410

      Resource no longer available

    • ReadonlyHTTP_VERSION_NOT_SUPPORTED: 505

      HTTP version not supported

    • ReadonlyIM_A_TEAPOT: 418

      Teapot

    • ReadonlyIM_USED: 226

      Response successfully processed but no body

    • ReadonlyINSUFFICIENT_STORAGE: 507

      Insufficient storage

    • ReadonlyINTERNAL_SERVER_ERROR: 500

      Internal server error

    • ReadonlyLENGTH_REQUIRED: 411

      Length required

    • ReadonlyLOCKED: 423

      Resource locked

    • ReadonlyLOOP_DETECTED: 508

      Loop detected

    • ReadonlyMETHOD_NOT_ALLOWED: 405

      Method not allowed

    • ReadonlyMISDIRECTED_REQUEST: 421

      Misdirected request

    • ReadonlyMOVED_PERMANENTLY: 301

      Resource permanently moved

    • ReadonlyMULTI_STATUS: 207

      WebDAV: Multi-status response

    • ReadonlyMULTIPLE_CHOICES: 300

      Multiple response choices

    • ReadonlyNETWORK_AUTHENTICATION_REQUIRED: 511

      Network authentication required

    • ReadonlyNO_CONTENT: 204

      Request successful but no content returned

    • ReadonlyNON_AUTHORITATIVE_INFORMATION: 203

      Non-authoritative information

    • ReadonlyNOT_ACCEPTABLE: 406

      Not acceptable

    • ReadonlyNOT_EXTENDED: 510

      Not extended

    • ReadonlyNOT_FOUND: 404

      Resource not found

    • ReadonlyNOT_IMPLEMENTED: 501

      Not implemented

    • ReadonlyNOT_MODIFIED: 304

      Resource not modified

    • ReadonlyOK: 200

      Request succeeded

    • ReadonlyPARTIAL_CONTENT: 206

      Partial content returned

    • ReadonlyPAYLOAD_TOO_LARGE: 413

      Payload too large

    • ReadonlyPAYMENT_REQUIRED: 402

      Payment required (reserved)

    • ReadonlyPERMANENT_REDIRECT: 308

      Permanent redirect

    • ReadonlyPRECONDITION_FAILED: 412

      Precondition failed

    • ReadonlyPRECONDITION_REQUIRED: 428

      Precondition required

    • ReadonlyPROCESSING: 102

      WebDAV: Processing request

    • ReadonlyPROXY_AUTH_REQUIRED: 407

      Proxy authentication required

    • ReadonlyRANGE_NOT_SATISFIABLE: 416

      Range not satisfiable

    • ReadonlyREQUEST_HEADER_FIELDS_TOO_LARGE: 431

      Request header fields too large

    • ReadonlyREQUEST_TIMEOUT: 408

      Request timeout

    • ReadonlyRESET_CONTENT: 205

      Reset view/document

    • ReadonlySEE_OTHER: 303

      See another URI using GET

    • ReadonlySERVICE_UNAVAILABLE: 503

      Service unavailable

    • ReadonlySWITCHING_PROTOCOLS: 101

      Switching protocols as requested

    • ReadonlyTEMPORARY_REDIRECT: 307

      Temporary redirect

    • ReadonlyTOO_EARLY: 425

      Too early

    • ReadonlyTOO_MANY_REQUESTS: 429

      Too many requests (rate limited)

    • ReadonlyUNAUTHORIZED: 401

      Authentication required

    • Unavailable for legal reasons

    • ReadonlyUNPROCESSABLE_ENTITY: 422

      Unprocessable entity

    • ReadonlyUNSUPPORTED_MEDIA_TYPE: 415

      Unsupported media type

    • ReadonlyUPGRADE_REQUIRED: 426

      Upgrade required

    • ReadonlyURI_TOO_LONG: 414

      URI too long

    • ReadonlyUSE_PROXY: 305

      Use proxy.

    • ReadonlyVARIANT_ALSO_NEGOTIATES: 506

      Variant also negotiates

    res.status(HTTP_STATUS.OK).json({ success: true })