UNPKG

@naverpay/es-http-status-codes

Version:

A lightweight, tree-shakable utility for HTTP status codes and reason phrases in TypeScript/JavaScript. Auto-generated and ESM-compatible.

68 lines (67 loc) 4.32 kB
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const statusCode = require("./status-code.js"); const ReasonPhrases = { [statusCode.HttpStatusCodes.CONTINUE]: "Continue", [statusCode.HttpStatusCodes.SWITCHING_PROTOCOLS]: "Switching Protocols", [statusCode.HttpStatusCodes.PROCESSING]: "Processing", [statusCode.HttpStatusCodes.EARLY_HINTS]: "Early Hints", [statusCode.HttpStatusCodes.OK]: "OK", [statusCode.HttpStatusCodes.CREATED]: "Created", [statusCode.HttpStatusCodes.ACCEPTED]: "Accepted", [statusCode.HttpStatusCodes.NON_AUTHORITATIVE_INFORMATION]: "Non-Authoritative Information", [statusCode.HttpStatusCodes.NO_CONTENT]: "No Content", [statusCode.HttpStatusCodes.RESET_CONTENT]: "Reset Content", [statusCode.HttpStatusCodes.PARTIAL_CONTENT]: "Partial Content", [statusCode.HttpStatusCodes.MULTI_STATUS]: "Multi-Status", [statusCode.HttpStatusCodes.ALREADY_REPORTED]: "Already Reported", [statusCode.HttpStatusCodes.IM_USED]: "IM Used", [statusCode.HttpStatusCodes.MULTIPLE_CHOICES]: "Multiple Choices", [statusCode.HttpStatusCodes.MOVED_PERMANENTLY]: "Moved Permanently", [statusCode.HttpStatusCodes.FOUND]: "Found", [statusCode.HttpStatusCodes.SEE_OTHER]: "See Other", [statusCode.HttpStatusCodes.NOT_MODIFIED]: "Not Modified", [statusCode.HttpStatusCodes.USE_PROXY]: "Use Proxy", [statusCode.HttpStatusCodes.TEMPORARY_REDIRECT]: "Temporary Redirect", [statusCode.HttpStatusCodes.PERMANENT_REDIRECT]: "Permanent Redirect", [statusCode.HttpStatusCodes.BAD_REQUEST]: "Bad Request", [statusCode.HttpStatusCodes.UNAUTHORIZED]: "Unauthorized", [statusCode.HttpStatusCodes.PAYMENT_REQUIRED]: "Payment Required", [statusCode.HttpStatusCodes.FORBIDDEN]: "Forbidden", [statusCode.HttpStatusCodes.NOT_FOUND]: "Not Found", [statusCode.HttpStatusCodes.METHOD_NOT_ALLOWED]: "Method Not Allowed", [statusCode.HttpStatusCodes.NOT_ACCEPTABLE]: "Not Acceptable", [statusCode.HttpStatusCodes.PROXY_AUTHENTICATION_REQUIRED]: "Proxy Authentication Required", [statusCode.HttpStatusCodes.REQUEST_TIMEOUT]: "Request Timeout", [statusCode.HttpStatusCodes.CONFLICT]: "Conflict", [statusCode.HttpStatusCodes.GONE]: "Gone", [statusCode.HttpStatusCodes.LENGTH_REQUIRED]: "Length Required", [statusCode.HttpStatusCodes.PRECONDITION_FAILED]: "Precondition Failed", [statusCode.HttpStatusCodes.PAYLOAD_TOO_LARGE]: "Payload Too Large", [statusCode.HttpStatusCodes.URI_TOO_LONG]: "URI Too Long", [statusCode.HttpStatusCodes.UNSUPPORTED_MEDIA_TYPE]: "Unsupported Media Type", [statusCode.HttpStatusCodes.RANGE_NOT_SATISFIABLE]: "Range Not Satisfiable", [statusCode.HttpStatusCodes.EXPECTATION_FAILED]: "Expectation Failed", [statusCode.HttpStatusCodes.IM_A_TEAPOT]: "I'm a teapot", [statusCode.HttpStatusCodes.MISDIRECTED_REQUEST]: "Misdirected Request", [statusCode.HttpStatusCodes.UNPROCESSABLE_ENTITY]: "Unprocessable Entity", [statusCode.HttpStatusCodes.LOCKED]: "Locked", [statusCode.HttpStatusCodes.FAILED_DEPENDENCY]: "Failed Dependency", [statusCode.HttpStatusCodes.UPGRADE_REQUIRED]: "Upgrade Required", [statusCode.HttpStatusCodes.PRECONDITION_REQUIRED]: "Precondition Required", [statusCode.HttpStatusCodes.TOO_MANY_REQUESTS]: "Too Many Requests", [statusCode.HttpStatusCodes.REQUEST_HEADER_FIELDS_TOO_LARGE]: "Request Header Fields Too Large", [statusCode.HttpStatusCodes.UNAVAILABLE_FOR_LEGAL_REASONS]: "Unavailable For Legal Reasons", [statusCode.HttpStatusCodes.INTERNAL_SERVER_ERROR]: "Internal Server Error", [statusCode.HttpStatusCodes.NOT_IMPLEMENTED]: "Not Implemented", [statusCode.HttpStatusCodes.BAD_GATEWAY]: "Bad Gateway", [statusCode.HttpStatusCodes.SERVICE_UNAVAILABLE]: "Service Unavailable", [statusCode.HttpStatusCodes.GATEWAY_TIMEOUT]: "Gateway Timeout", [statusCode.HttpStatusCodes.HTTP_VERSION_NOT_SUPPORTED]: "HTTP Version Not Supported", [statusCode.HttpStatusCodes.VARIANT_ALSO_NEGOTIATES]: "Variant Also Negotiates", [statusCode.HttpStatusCodes.INSUFFICIENT_STORAGE]: "Insufficient Storage", [statusCode.HttpStatusCodes.LOOP_DETECTED]: "Loop Detected", [statusCode.HttpStatusCodes.NOT_EXTENDED]: "Not Extended", [statusCode.HttpStatusCodes.NETWORK_AUTHENTICATION_REQUIRED]: "Network Authentication Required" }; exports.ReasonPhrases = ReasonPhrases;