UNPKG

@metatypes/http-statuses

Version:
1,337 lines 65.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * HTTP Status Codes as defined by @metatypes/http-statuses * @see {@link https://github.com/FlorianWendelborn/metatypes/tree/master/packages/http-statuses} */ var Statuses; (function (Statuses) { /** * Continue * @summary Request received, please continue * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.2.1} */ Statuses[Statuses["HTTP_100_CONTINUE"] = 100] = "HTTP_100_CONTINUE"; /** * Switching Protocols * @summary Switching to new protocol; obey Upgrade header * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.2.2} */ Statuses[Statuses["HTTP_101_SWITCHING_PROTOCOLS"] = 101] = "HTTP_101_SWITCHING_PROTOCOLS"; /** * Processing * @summary TODO: summarize * * @deprecated [due to lack of implementation]{@link https://tools.ietf.org/html/rfc4918#appendix-F.3} * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.1} */ Statuses[Statuses["HTTP_102_PROCESSING"] = 102] = "HTTP_102_PROCESSING"; /** * Early Hints * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc8297#section-2} */ Statuses[Statuses["HTTP_103_EARLY_HINTS"] = 103] = "HTTP_103_EARLY_HINTS"; /** * OK * @summary Request fulfilled, document follows * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.1}} */ Statuses[Statuses["HTTP_200_OK"] = 200] = "HTTP_200_OK"; /** * Created * @summary Document created, URL follows * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.2} */ Statuses[Statuses["HTTP_201_CREATED"] = 201] = "HTTP_201_CREATED"; /** * Accepted * @summary Request accepted, processing continues off-line * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.3} */ Statuses[Statuses["HTTP_202_ACCEPTED"] = 202] = "HTTP_202_ACCEPTED"; /** * Non-Authoritative Information * @summary Request fulfilled from cache * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.4} */ Statuses[Statuses["HTTP_203_NON_AUTHORITATIVE_INFORMATION"] = 203] = "HTTP_203_NON_AUTHORITATIVE_INFORMATION"; /** * No Content * @summary Request fulfilled, nothing follows * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.5} */ Statuses[Statuses["HTTP_204_NO_CONTENT"] = 204] = "HTTP_204_NO_CONTENT"; /** * Reset Content * @summary Clear input form for further input * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.6} */ Statuses[Statuses["HTTP_205_RESET_CONTENT"] = 205] = "HTTP_205_RESET_CONTENT"; /** * Partial Content * @summary Partial content follows * * @see [RFC]{@link https://tools.ietf.org/html/rfc7233#section-4.1} */ Statuses[Statuses["HTTP_206_PARTIAL_CONTENT"] = 206] = "HTTP_206_PARTIAL_CONTENT"; /** * Multi-Status * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.2} */ Statuses[Statuses["HTTP_207_MULTI_STATUS"] = 207] = "HTTP_207_MULTI_STATUS"; /** * Already Reported * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc5842#section-7.1} */ Statuses[Statuses["HTTP_208_ALREADY_REPORTED"] = 208] = "HTTP_208_ALREADY_REPORTED"; /** * IM Used * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc3229#section-10.4.1} */ Statuses[Statuses["HTTP_226_IM_USED"] = 226] = "HTTP_226_IM_USED"; /** * Multiple Choices * @summary Object has several resources — see URI list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.1} */ Statuses[Statuses["HTTP_300_MULTIPLE_CHOICES"] = 300] = "HTTP_300_MULTIPLE_CHOICES"; /** * Moved Permanently * @summary Object moved permanently — see URI list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.2} */ Statuses[Statuses["HTTP_301_MOVED_PERMANENTLY"] = 301] = "HTTP_301_MOVED_PERMANENTLY"; /** * Found * @summary Object moved temporarily — see URI list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.3} */ Statuses[Statuses["HTTP_302_FOUND"] = 302] = "HTTP_302_FOUND"; /** * See Other * @summary Object moved — see Method and URL list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.4} */ Statuses[Statuses["HTTP_303_SEE_OTHER"] = 303] = "HTTP_303_SEE_OTHER"; /** * Not Modified * @summary Document has not changed since given time * * @see [RFC]{@link https://tools.ietf.org/html/rfc7232#section-4.1} */ Statuses[Statuses["HTTP_304_NOT_MODIFIED"] = 304] = "HTTP_304_NOT_MODIFIED"; /** * Use Proxy * @summary You must use proxy specified in Location to access this resource * * @deprecated [due to security concerns regarding in-band configuration of a proxy]{@link https://tools.ietf.org/html/rfc7231#section-6.4.5} * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.5} */ Statuses[Statuses["HTTP_305_USE_PROXY"] = 305] = "HTTP_305_USE_PROXY"; /** * (Unused) * @summary TODO: summarize * * @deprecated [The 306 status code was defined in a previous version of this specification, is no longer used, and the code is reserved.]{@link https://tools.ietf.org/html/rfc7231#section-6.4.5} * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.5} */ Statuses[Statuses["HTTP_306_RESERVED"] = 306] = "HTTP_306_RESERVED"; /** * Temporary Redirect * @summary Object moved temporarily — see URI list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.7} */ Statuses[Statuses["HTTP_307_TEMPORARY_REDIRECT"] = 307] = "HTTP_307_TEMPORARY_REDIRECT"; /** * Permanent Redirect * @summary Object moved permanently — see URI list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7538#section-3} */ Statuses[Statuses["HTTP_308_PERMANENT_REDIRECT"] = 308] = "HTTP_308_PERMANENT_REDIRECT"; /** * Bad Request * @summary Bad request syntax or unsupported method * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.1} */ Statuses[Statuses["HTTP_400_BAD_REQUEST"] = 400] = "HTTP_400_BAD_REQUEST"; /** * Unauthorized * @summary No permission — see authorization schemes * * @see [RFC]{@link https://tools.ietf.org/html/rfc7235#section-3.1} */ Statuses[Statuses["HTTP_401_UNAUTHORIZED"] = 401] = "HTTP_401_UNAUTHORIZED"; /** * Payment Required * @summary No payment — see charging schemes * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.2} */ Statuses[Statuses["HTTP_402_PAYMENT_REQUIRED"] = 402] = "HTTP_402_PAYMENT_REQUIRED"; /** * Forbidden * @summary Request forbidden — authorization will not help * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.3} */ Statuses[Statuses["HTTP_403_FORBIDDEN"] = 403] = "HTTP_403_FORBIDDEN"; /** * Not Found * @summary Nothing matches the given URI * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.4} */ Statuses[Statuses["HTTP_404_NOT_FOUND"] = 404] = "HTTP_404_NOT_FOUND"; /** * Method Not Allowed * @summary Specified method is invalid for this resource * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.5} */ Statuses[Statuses["HTTP_405_METHOD_NOT_ALLOWED"] = 405] = "HTTP_405_METHOD_NOT_ALLOWED"; /** * Not Acceptable * @summary URI not available in preferred format * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.6} */ Statuses[Statuses["HTTP_406_NOT_ACCEPTABLE"] = 406] = "HTTP_406_NOT_ACCEPTABLE"; /** * Proxy Authentication Required * @summary You must authenticate with this proxy before proceeding * * @see [RFC]{@link https://tools.ietf.org/html/rfc7235#section-3.2} */ Statuses[Statuses["HTTP_407_PROXY_AUTHENTICATION_REQUIRED"] = 407] = "HTTP_407_PROXY_AUTHENTICATION_REQUIRED"; /** * Request Timeout * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.7} */ Statuses[Statuses["HTTP_408_REQUEST_TIMEOUT"] = 408] = "HTTP_408_REQUEST_TIMEOUT"; /** * Conflict * @summary Request conflict * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.8} */ Statuses[Statuses["HTTP_409_CONFLICT"] = 409] = "HTTP_409_CONFLICT"; /** * Gone * @summary URI no longer exists and has been permanently removed * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.9} */ Statuses[Statuses["HTTP_410_GONE"] = 410] = "HTTP_410_GONE"; /** * Length Required * @summary Client must specify Content-Length * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.10} */ Statuses[Statuses["HTTP_411_LENGTH_REQUIRED"] = 411] = "HTTP_411_LENGTH_REQUIRED"; /** * Precondition Failed * @summary Precondition in headers is false * * @see [RFC]{@link https://tools.ietf.org/html/rfc7232#section-4.2} */ Statuses[Statuses["HTTP_412_PRECONDITION_FAILED"] = 412] = "HTTP_412_PRECONDITION_FAILED"; /** * Payload Too Large * @summary Entity is too large * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.11} */ Statuses[Statuses["HTTP_413_REQUEST_ENTITY_TOO_LARGE"] = 413] = "HTTP_413_REQUEST_ENTITY_TOO_LARGE"; /** * URI Too Long * @summary URI is too long * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.12} */ Statuses[Statuses["HTTP_414_REQUEST_URI_TOO_LONG"] = 414] = "HTTP_414_REQUEST_URI_TOO_LONG"; /** * Unsupported Media Type * @summary Entity body in unsupported format * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.13} */ Statuses[Statuses["HTTP_415_UNSUPPORTED_MEDIA_TYPE"] = 415] = "HTTP_415_UNSUPPORTED_MEDIA_TYPE"; /** * Range Not Satisfiable * @summary Cannot satisfy request range * * @see [RFC]{@link https://tools.ietf.org/html/rfc7233#section-4.4} */ Statuses[Statuses["HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE"; /** * Expectation Failed * @summary Expect condition could not be satisfied * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.14} */ Statuses[Statuses["HTTP_417_EXPECTATION_FAILED"] = 417] = "HTTP_417_EXPECTATION_FAILED"; /** * I'm a teapot * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2324#section-2.3.2} */ Statuses[Statuses["HTTP_418_I_AM_A_TEAPOT"] = 418] = "HTTP_418_I_AM_A_TEAPOT"; /** * Misdirected Request * @summary Server is not able to produce a response * * @see [RFC]{@link https://tools.ietf.org/html/rfc7540#section-9.1.2} */ Statuses[Statuses["HTTP_421_MISDIRECTED_REQUEST"] = 421] = "HTTP_421_MISDIRECTED_REQUEST"; /** * Unprocessable Entity * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.3} */ Statuses[Statuses["HTTP_422_UNPROCESSABLE_ENTITY"] = 422] = "HTTP_422_UNPROCESSABLE_ENTITY"; /** * Locked * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.4} */ Statuses[Statuses["HTTP_423_LOCKED"] = 423] = "HTTP_423_LOCKED"; /** * Failed Dependency * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.5} */ Statuses[Statuses["HTTP_424_FAILED_DEPENDENCY"] = 424] = "HTTP_424_FAILED_DEPENDENCY"; /** * Upgrade Required * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2817#section-6} */ Statuses[Statuses["HTTP_426_UPGRADE_REQUIRED"] = 426] = "HTTP_426_UPGRADE_REQUIRED"; /** * Precondition Required * @summary The origin server requires the request to be conditional * * @see [RFC]{@link https://tools.ietf.org/html/rfc6585#section-3} */ Statuses[Statuses["HTTP_428_PRECONDITION_REQUIRED"] = 428] = "HTTP_428_PRECONDITION_REQUIRED"; /** * Too Many Requests * @summary The user has sent too many requests in a given amount of time ("rate limiting") * * @see [RFC]{@link https://tools.ietf.org/html/rfc6585#section-4} */ Statuses[Statuses["HTTP_429_TOO_MANY_REQUESTS"] = 429] = "HTTP_429_TOO_MANY_REQUESTS"; /** * Request Header Fields Too Large * @summary The server is unwilling to process the request because its header fields are too large * * @see [RFC]{@link https://tools.ietf.org/html/rfc6585#section-5} */ Statuses[Statuses["HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE"] = 431] = "HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE"; /** * Unavailable For Legal Reasons * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc7725#section-3} */ Statuses[Statuses["HTTP_451_UNAVAILABLE_FOR_LEGAL_REASONS"] = 451] = "HTTP_451_UNAVAILABLE_FOR_LEGAL_REASONS"; /** * Internal Server Error * @summary Server got itself in trouble * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.1} */ Statuses[Statuses["HTTP_500_INTERNAL_SERVER_ERROR"] = 500] = "HTTP_500_INTERNAL_SERVER_ERROR"; /** * Not Implemented * @summary Server does not support this operation * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.2} */ Statuses[Statuses["HTTP_501_NOT_IMPLEMENTED"] = 501] = "HTTP_501_NOT_IMPLEMENTED"; /** * Bad Gateway * @summary Invalid responses from another server/proxy * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.3} */ Statuses[Statuses["HTTP_502_BAD_GATEWAY"] = 502] = "HTTP_502_BAD_GATEWAY"; /** * Service Unavailable * @summary The server cannot process the request due to a high load * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.4} */ Statuses[Statuses["HTTP_503_SERVICE_UNAVAILABLE"] = 503] = "HTTP_503_SERVICE_UNAVAILABLE"; /** * Gateway Timeout * @summary The gateway server did not receive a timely response * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.5} */ Statuses[Statuses["HTTP_504_GATEWAY_TIMEOUT"] = 504] = "HTTP_504_GATEWAY_TIMEOUT"; /** * HTTP Version Not Supported * @summary Cannot fulfill request * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.6} */ Statuses[Statuses["HTTP_505_HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_505_HTTP_VERSION_NOT_SUPPORTED"; /** * Variant Also Negotiates * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2295#section-8.1} */ Statuses[Statuses["HTTP_506_VARIANT_ALSO_NEGOTIATES"] = 506] = "HTTP_506_VARIANT_ALSO_NEGOTIATES"; /** * Insufficient Storage * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.6} */ Statuses[Statuses["HTTP_507_INSUFFICIENT_STORAGE"] = 507] = "HTTP_507_INSUFFICIENT_STORAGE"; /** * Loop Detected * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc5842#section-7.2} */ Statuses[Statuses["HTTP_508_LOOP_DETECTED"] = 508] = "HTTP_508_LOOP_DETECTED"; /** * @summary TODO: summarize * */ Statuses[Statuses["HTTP_509_BANDWIDTH_LIMIT_EXCEEDED"] = 509] = "HTTP_509_BANDWIDTH_LIMIT_EXCEEDED"; /** * Not Extended * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2774#section-7} */ Statuses[Statuses["HTTP_510_NOT_EXTENDED"] = 510] = "HTTP_510_NOT_EXTENDED"; /** * Network Authentication Required * @summary The client needs to authenticate to gain network access * * @see [RFC]{@link https://tools.ietf.org/html/rfc6585#section-6} */ Statuses[Statuses["HTTP_511_NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "HTTP_511_NETWORK_AUTHENTICATION_REQUIRED"; })(Statuses = exports.Statuses || (exports.Statuses = {})); /** * HTTP Status Codes as defined by Django Rest Framework * @see {@link https://github.com/encode/django-rest-framework/blob/master/rest_framework/status.py} */ var DrfStatuses; (function (DrfStatuses) { /** * Continue * @summary Request received, please continue * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.2.1} */ DrfStatuses[DrfStatuses["HTTP_100_CONTINUE"] = 100] = "HTTP_100_CONTINUE"; /** * Switching Protocols * @summary Switching to new protocol; obey Upgrade header * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.2.2} */ DrfStatuses[DrfStatuses["HTTP_101_SWITCHING_PROTOCOLS"] = 101] = "HTTP_101_SWITCHING_PROTOCOLS"; /** * OK * @summary Request fulfilled, document follows * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.1}} */ DrfStatuses[DrfStatuses["HTTP_200_OK"] = 200] = "HTTP_200_OK"; /** * Created * @summary Document created, URL follows * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.2} */ DrfStatuses[DrfStatuses["HTTP_201_CREATED"] = 201] = "HTTP_201_CREATED"; /** * Accepted * @summary Request accepted, processing continues off-line * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.3} */ DrfStatuses[DrfStatuses["HTTP_202_ACCEPTED"] = 202] = "HTTP_202_ACCEPTED"; /** * Non-Authoritative Information * @summary Request fulfilled from cache * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.4} */ DrfStatuses[DrfStatuses["HTTP_203_NON_AUTHORITATIVE_INFORMATION"] = 203] = "HTTP_203_NON_AUTHORITATIVE_INFORMATION"; /** * No Content * @summary Request fulfilled, nothing follows * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.5} */ DrfStatuses[DrfStatuses["HTTP_204_NO_CONTENT"] = 204] = "HTTP_204_NO_CONTENT"; /** * Reset Content * @summary Clear input form for further input * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.6} */ DrfStatuses[DrfStatuses["HTTP_205_RESET_CONTENT"] = 205] = "HTTP_205_RESET_CONTENT"; /** * Partial Content * @summary Partial content follows * * @see [RFC]{@link https://tools.ietf.org/html/rfc7233#section-4.1} */ DrfStatuses[DrfStatuses["HTTP_206_PARTIAL_CONTENT"] = 206] = "HTTP_206_PARTIAL_CONTENT"; /** * Multi-Status * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.2} */ DrfStatuses[DrfStatuses["HTTP_207_MULTI_STATUS"] = 207] = "HTTP_207_MULTI_STATUS"; /** * Already Reported * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc5842#section-7.1} */ DrfStatuses[DrfStatuses["HTTP_208_ALREADY_REPORTED"] = 208] = "HTTP_208_ALREADY_REPORTED"; /** * IM Used * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc3229#section-10.4.1} */ DrfStatuses[DrfStatuses["HTTP_226_IM_USED"] = 226] = "HTTP_226_IM_USED"; /** * Multiple Choices * @summary Object has several resources — see URI list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.1} */ DrfStatuses[DrfStatuses["HTTP_300_MULTIPLE_CHOICES"] = 300] = "HTTP_300_MULTIPLE_CHOICES"; /** * Moved Permanently * @summary Object moved permanently — see URI list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.2} */ DrfStatuses[DrfStatuses["HTTP_301_MOVED_PERMANENTLY"] = 301] = "HTTP_301_MOVED_PERMANENTLY"; /** * Found * @summary Object moved temporarily — see URI list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.3} */ DrfStatuses[DrfStatuses["HTTP_302_FOUND"] = 302] = "HTTP_302_FOUND"; /** * See Other * @summary Object moved — see Method and URL list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.4} */ DrfStatuses[DrfStatuses["HTTP_303_SEE_OTHER"] = 303] = "HTTP_303_SEE_OTHER"; /** * Not Modified * @summary Document has not changed since given time * * @see [RFC]{@link https://tools.ietf.org/html/rfc7232#section-4.1} */ DrfStatuses[DrfStatuses["HTTP_304_NOT_MODIFIED"] = 304] = "HTTP_304_NOT_MODIFIED"; /** * Use Proxy * @summary You must use proxy specified in Location to access this resource * * @deprecated [due to security concerns regarding in-band configuration of a proxy]{@link https://tools.ietf.org/html/rfc7231#section-6.4.5} * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.5} */ DrfStatuses[DrfStatuses["HTTP_305_USE_PROXY"] = 305] = "HTTP_305_USE_PROXY"; /** * (Unused) * @summary TODO: summarize * * @deprecated [The 306 status code was defined in a previous version of this specification, is no longer used, and the code is reserved.]{@link https://tools.ietf.org/html/rfc7231#section-6.4.5} * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.5} */ DrfStatuses[DrfStatuses["HTTP_306_RESERVED"] = 306] = "HTTP_306_RESERVED"; /** * Temporary Redirect * @summary Object moved temporarily — see URI list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.7} */ DrfStatuses[DrfStatuses["HTTP_307_TEMPORARY_REDIRECT"] = 307] = "HTTP_307_TEMPORARY_REDIRECT"; /** * Permanent Redirect * @summary Object moved permanently — see URI list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7538#section-3} */ DrfStatuses[DrfStatuses["HTTP_308_PERMANENT_REDIRECT"] = 308] = "HTTP_308_PERMANENT_REDIRECT"; /** * Bad Request * @summary Bad request syntax or unsupported method * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.1} */ DrfStatuses[DrfStatuses["HTTP_400_BAD_REQUEST"] = 400] = "HTTP_400_BAD_REQUEST"; /** * Unauthorized * @summary No permission — see authorization schemes * * @see [RFC]{@link https://tools.ietf.org/html/rfc7235#section-3.1} */ DrfStatuses[DrfStatuses["HTTP_401_UNAUTHORIZED"] = 401] = "HTTP_401_UNAUTHORIZED"; /** * Payment Required * @summary No payment — see charging schemes * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.2} */ DrfStatuses[DrfStatuses["HTTP_402_PAYMENT_REQUIRED"] = 402] = "HTTP_402_PAYMENT_REQUIRED"; /** * Forbidden * @summary Request forbidden — authorization will not help * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.3} */ DrfStatuses[DrfStatuses["HTTP_403_FORBIDDEN"] = 403] = "HTTP_403_FORBIDDEN"; /** * Not Found * @summary Nothing matches the given URI * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.4} */ DrfStatuses[DrfStatuses["HTTP_404_NOT_FOUND"] = 404] = "HTTP_404_NOT_FOUND"; /** * Method Not Allowed * @summary Specified method is invalid for this resource * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.5} */ DrfStatuses[DrfStatuses["HTTP_405_METHOD_NOT_ALLOWED"] = 405] = "HTTP_405_METHOD_NOT_ALLOWED"; /** * Not Acceptable * @summary URI not available in preferred format * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.6} */ DrfStatuses[DrfStatuses["HTTP_406_NOT_ACCEPTABLE"] = 406] = "HTTP_406_NOT_ACCEPTABLE"; /** * Proxy Authentication Required * @summary You must authenticate with this proxy before proceeding * * @see [RFC]{@link https://tools.ietf.org/html/rfc7235#section-3.2} */ DrfStatuses[DrfStatuses["HTTP_407_PROXY_AUTHENTICATION_REQUIRED"] = 407] = "HTTP_407_PROXY_AUTHENTICATION_REQUIRED"; /** * Request Timeout * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.7} */ DrfStatuses[DrfStatuses["HTTP_408_REQUEST_TIMEOUT"] = 408] = "HTTP_408_REQUEST_TIMEOUT"; /** * Conflict * @summary Request conflict * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.8} */ DrfStatuses[DrfStatuses["HTTP_409_CONFLICT"] = 409] = "HTTP_409_CONFLICT"; /** * Gone * @summary URI no longer exists and has been permanently removed * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.9} */ DrfStatuses[DrfStatuses["HTTP_410_GONE"] = 410] = "HTTP_410_GONE"; /** * Length Required * @summary Client must specify Content-Length * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.10} */ DrfStatuses[DrfStatuses["HTTP_411_LENGTH_REQUIRED"] = 411] = "HTTP_411_LENGTH_REQUIRED"; /** * Precondition Failed * @summary Precondition in headers is false * * @see [RFC]{@link https://tools.ietf.org/html/rfc7232#section-4.2} */ DrfStatuses[DrfStatuses["HTTP_412_PRECONDITION_FAILED"] = 412] = "HTTP_412_PRECONDITION_FAILED"; /** * Payload Too Large * @summary Entity is too large * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.11} */ DrfStatuses[DrfStatuses["HTTP_413_REQUEST_ENTITY_TOO_LARGE"] = 413] = "HTTP_413_REQUEST_ENTITY_TOO_LARGE"; /** * URI Too Long * @summary URI is too long * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.12} */ DrfStatuses[DrfStatuses["HTTP_414_REQUEST_URI_TOO_LONG"] = 414] = "HTTP_414_REQUEST_URI_TOO_LONG"; /** * Unsupported Media Type * @summary Entity body in unsupported format * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.13} */ DrfStatuses[DrfStatuses["HTTP_415_UNSUPPORTED_MEDIA_TYPE"] = 415] = "HTTP_415_UNSUPPORTED_MEDIA_TYPE"; /** * Range Not Satisfiable * @summary Cannot satisfy request range * * @see [RFC]{@link https://tools.ietf.org/html/rfc7233#section-4.4} */ DrfStatuses[DrfStatuses["HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE"; /** * Expectation Failed * @summary Expect condition could not be satisfied * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.14} */ DrfStatuses[DrfStatuses["HTTP_417_EXPECTATION_FAILED"] = 417] = "HTTP_417_EXPECTATION_FAILED"; /** * Unprocessable Entity * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.3} */ DrfStatuses[DrfStatuses["HTTP_422_UNPROCESSABLE_ENTITY"] = 422] = "HTTP_422_UNPROCESSABLE_ENTITY"; /** * Locked * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.4} */ DrfStatuses[DrfStatuses["HTTP_423_LOCKED"] = 423] = "HTTP_423_LOCKED"; /** * Failed Dependency * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.5} */ DrfStatuses[DrfStatuses["HTTP_424_FAILED_DEPENDENCY"] = 424] = "HTTP_424_FAILED_DEPENDENCY"; /** * Upgrade Required * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2817#section-6} */ DrfStatuses[DrfStatuses["HTTP_426_UPGRADE_REQUIRED"] = 426] = "HTTP_426_UPGRADE_REQUIRED"; /** * Precondition Required * @summary The origin server requires the request to be conditional * * @see [RFC]{@link https://tools.ietf.org/html/rfc6585#section-3} */ DrfStatuses[DrfStatuses["HTTP_428_PRECONDITION_REQUIRED"] = 428] = "HTTP_428_PRECONDITION_REQUIRED"; /** * Too Many Requests * @summary The user has sent too many requests in a given amount of time ("rate limiting") * * @see [RFC]{@link https://tools.ietf.org/html/rfc6585#section-4} */ DrfStatuses[DrfStatuses["HTTP_429_TOO_MANY_REQUESTS"] = 429] = "HTTP_429_TOO_MANY_REQUESTS"; /** * Request Header Fields Too Large * @summary The server is unwilling to process the request because its header fields are too large * * @see [RFC]{@link https://tools.ietf.org/html/rfc6585#section-5} */ DrfStatuses[DrfStatuses["HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE"] = 431] = "HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE"; /** * Unavailable For Legal Reasons * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc7725#section-3} */ DrfStatuses[DrfStatuses["HTTP_451_UNAVAILABLE_FOR_LEGAL_REASONS"] = 451] = "HTTP_451_UNAVAILABLE_FOR_LEGAL_REASONS"; /** * Internal Server Error * @summary Server got itself in trouble * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.1} */ DrfStatuses[DrfStatuses["HTTP_500_INTERNAL_SERVER_ERROR"] = 500] = "HTTP_500_INTERNAL_SERVER_ERROR"; /** * Not Implemented * @summary Server does not support this operation * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.2} */ DrfStatuses[DrfStatuses["HTTP_501_NOT_IMPLEMENTED"] = 501] = "HTTP_501_NOT_IMPLEMENTED"; /** * Bad Gateway * @summary Invalid responses from another server/proxy * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.3} */ DrfStatuses[DrfStatuses["HTTP_502_BAD_GATEWAY"] = 502] = "HTTP_502_BAD_GATEWAY"; /** * Service Unavailable * @summary The server cannot process the request due to a high load * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.4} */ DrfStatuses[DrfStatuses["HTTP_503_SERVICE_UNAVAILABLE"] = 503] = "HTTP_503_SERVICE_UNAVAILABLE"; /** * Gateway Timeout * @summary The gateway server did not receive a timely response * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.5} */ DrfStatuses[DrfStatuses["HTTP_504_GATEWAY_TIMEOUT"] = 504] = "HTTP_504_GATEWAY_TIMEOUT"; /** * HTTP Version Not Supported * @summary Cannot fulfill request * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.6} */ DrfStatuses[DrfStatuses["HTTP_505_HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_505_HTTP_VERSION_NOT_SUPPORTED"; /** * Variant Also Negotiates * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2295#section-8.1} */ DrfStatuses[DrfStatuses["HTTP_506_VARIANT_ALSO_NEGOTIATES"] = 506] = "HTTP_506_VARIANT_ALSO_NEGOTIATES"; /** * Insufficient Storage * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.6} */ DrfStatuses[DrfStatuses["HTTP_507_INSUFFICIENT_STORAGE"] = 507] = "HTTP_507_INSUFFICIENT_STORAGE"; /** * Loop Detected * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc5842#section-7.2} */ DrfStatuses[DrfStatuses["HTTP_508_LOOP_DETECTED"] = 508] = "HTTP_508_LOOP_DETECTED"; /** * @summary TODO: summarize * */ DrfStatuses[DrfStatuses["HTTP_509_BANDWIDTH_LIMIT_EXCEEDED"] = 509] = "HTTP_509_BANDWIDTH_LIMIT_EXCEEDED"; /** * Not Extended * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2774#section-7} */ DrfStatuses[DrfStatuses["HTTP_510_NOT_EXTENDED"] = 510] = "HTTP_510_NOT_EXTENDED"; /** * Network Authentication Required * @summary The client needs to authenticate to gain network access * * @see [RFC]{@link https://tools.ietf.org/html/rfc6585#section-6} */ DrfStatuses[DrfStatuses["HTTP_511_NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "HTTP_511_NETWORK_AUTHENTICATION_REQUIRED"; })(DrfStatuses = exports.DrfStatuses || (exports.DrfStatuses = {})); /** * HTTP Status Codes as defined by Node.js * @see {@link https://github.com/nodejs/node/blob/d7d321b071789f08c65dbb11a0e4b3b6a299af44/lib/_http_server.js#L70} */ var NodeJsStatuses; (function (NodeJsStatuses) { /** * Continue * @summary Request received, please continue * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.2.1} */ NodeJsStatuses[NodeJsStatuses["Continue"] = 100] = "Continue"; /** * Switching Protocols * @summary Switching to new protocol; obey Upgrade header * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.2.2} */ NodeJsStatuses[NodeJsStatuses["SwitchingProtocols"] = 101] = "SwitchingProtocols"; /** * Processing * @summary TODO: summarize * * @deprecated [due to lack of implementation]{@link https://tools.ietf.org/html/rfc4918#appendix-F.3} * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.1} */ NodeJsStatuses[NodeJsStatuses["Processing"] = 102] = "Processing"; /** * Early Hints * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc8297#section-2} */ NodeJsStatuses[NodeJsStatuses["EarlyHints"] = 103] = "EarlyHints"; /** * OK * @summary Request fulfilled, document follows * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.1}} */ NodeJsStatuses[NodeJsStatuses["OK"] = 200] = "OK"; /** * Created * @summary Document created, URL follows * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.2} */ NodeJsStatuses[NodeJsStatuses["Created"] = 201] = "Created"; /** * Accepted * @summary Request accepted, processing continues off-line * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.3} */ NodeJsStatuses[NodeJsStatuses["Accepted"] = 202] = "Accepted"; /** * Non-Authoritative Information * @summary Request fulfilled from cache * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.4} */ NodeJsStatuses[NodeJsStatuses["NonAuthoritativeInformation"] = 203] = "NonAuthoritativeInformation"; /** * No Content * @summary Request fulfilled, nothing follows * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.5} */ NodeJsStatuses[NodeJsStatuses["NoContent"] = 204] = "NoContent"; /** * Reset Content * @summary Clear input form for further input * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.3.6} */ NodeJsStatuses[NodeJsStatuses["ResetContent"] = 205] = "ResetContent"; /** * Partial Content * @summary Partial content follows * * @see [RFC]{@link https://tools.ietf.org/html/rfc7233#section-4.1} */ NodeJsStatuses[NodeJsStatuses["PartialContent"] = 206] = "PartialContent"; /** * Multi-Status * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.2} */ NodeJsStatuses[NodeJsStatuses["MultiStatus"] = 207] = "MultiStatus"; /** * Already Reported * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc5842#section-7.1} */ NodeJsStatuses[NodeJsStatuses["AlreadyReported"] = 208] = "AlreadyReported"; /** * IM Used * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc3229#section-10.4.1} */ NodeJsStatuses[NodeJsStatuses["IMUsed"] = 226] = "IMUsed"; /** * Multiple Choices * @summary Object has several resources — see URI list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.1} */ NodeJsStatuses[NodeJsStatuses["MultipleChoices"] = 300] = "MultipleChoices"; /** * Moved Permanently * @summary Object moved permanently — see URI list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.2} */ NodeJsStatuses[NodeJsStatuses["MovedPermanently"] = 301] = "MovedPermanently"; /** * Found * @summary Object moved temporarily — see URI list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.3} */ NodeJsStatuses[NodeJsStatuses["Found"] = 302] = "Found"; /** * See Other * @summary Object moved — see Method and URL list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.4} */ NodeJsStatuses[NodeJsStatuses["SeeOther"] = 303] = "SeeOther"; /** * Not Modified * @summary Document has not changed since given time * * @see [RFC]{@link https://tools.ietf.org/html/rfc7232#section-4.1} */ NodeJsStatuses[NodeJsStatuses["NotModified"] = 304] = "NotModified"; /** * Use Proxy * @summary You must use proxy specified in Location to access this resource * * @deprecated [due to security concerns regarding in-band configuration of a proxy]{@link https://tools.ietf.org/html/rfc7231#section-6.4.5} * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.5} */ NodeJsStatuses[NodeJsStatuses["UseProxy"] = 305] = "UseProxy"; /** * Temporary Redirect * @summary Object moved temporarily — see URI list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.4.7} */ NodeJsStatuses[NodeJsStatuses["TemporaryRedirect"] = 307] = "TemporaryRedirect"; /** * Permanent Redirect * @summary Object moved permanently — see URI list * * @see [RFC]{@link https://tools.ietf.org/html/rfc7538#section-3} */ NodeJsStatuses[NodeJsStatuses["PermanentRedirect"] = 308] = "PermanentRedirect"; /** * Bad Request * @summary Bad request syntax or unsupported method * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.1} */ NodeJsStatuses[NodeJsStatuses["BadRequest"] = 400] = "BadRequest"; /** * Unauthorized * @summary No permission — see authorization schemes * * @see [RFC]{@link https://tools.ietf.org/html/rfc7235#section-3.1} */ NodeJsStatuses[NodeJsStatuses["Unauthorized"] = 401] = "Unauthorized"; /** * Payment Required * @summary No payment — see charging schemes * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.2} */ NodeJsStatuses[NodeJsStatuses["PaymentRequired"] = 402] = "PaymentRequired"; /** * Forbidden * @summary Request forbidden — authorization will not help * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.3} */ NodeJsStatuses[NodeJsStatuses["Forbidden"] = 403] = "Forbidden"; /** * Not Found * @summary Nothing matches the given URI * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.4} */ NodeJsStatuses[NodeJsStatuses["NotFound"] = 404] = "NotFound"; /** * Method Not Allowed * @summary Specified method is invalid for this resource * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.5} */ NodeJsStatuses[NodeJsStatuses["MethodNotAllowed"] = 405] = "MethodNotAllowed"; /** * Not Acceptable * @summary URI not available in preferred format * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.6} */ NodeJsStatuses[NodeJsStatuses["NotAcceptable"] = 406] = "NotAcceptable"; /** * Proxy Authentication Required * @summary You must authenticate with this proxy before proceeding * * @see [RFC]{@link https://tools.ietf.org/html/rfc7235#section-3.2} */ NodeJsStatuses[NodeJsStatuses["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; /** * Request Timeout * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.7} */ NodeJsStatuses[NodeJsStatuses["RequestTimeout"] = 408] = "RequestTimeout"; /** * Conflict * @summary Request conflict * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.8} */ NodeJsStatuses[NodeJsStatuses["Conflict"] = 409] = "Conflict"; /** * Gone * @summary URI no longer exists and has been permanently removed * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.9} */ NodeJsStatuses[NodeJsStatuses["Gone"] = 410] = "Gone"; /** * Length Required * @summary Client must specify Content-Length * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.10} */ NodeJsStatuses[NodeJsStatuses["LengthRequired"] = 411] = "LengthRequired"; /** * Precondition Failed * @summary Precondition in headers is false * * @see [RFC]{@link https://tools.ietf.org/html/rfc7232#section-4.2} */ NodeJsStatuses[NodeJsStatuses["PreconditionFailed"] = 412] = "PreconditionFailed"; /** * Payload Too Large * @summary Entity is too large * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.11} */ NodeJsStatuses[NodeJsStatuses["PayloadTooLarge"] = 413] = "PayloadTooLarge"; /** * URI Too Long * @summary URI is too long * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.12} */ NodeJsStatuses[NodeJsStatuses["URITooLong"] = 414] = "URITooLong"; /** * Unsupported Media Type * @summary Entity body in unsupported format * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.13} */ NodeJsStatuses[NodeJsStatuses["UnsupportedMediaType"] = 415] = "UnsupportedMediaType"; /** * Range Not Satisfiable * @summary Cannot satisfy request range * * @see [RFC]{@link https://tools.ietf.org/html/rfc7233#section-4.4} */ NodeJsStatuses[NodeJsStatuses["RangeNotSatisfiable"] = 416] = "RangeNotSatisfiable"; /** * Expectation Failed * @summary Expect condition could not be satisfied * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.5.14} */ NodeJsStatuses[NodeJsStatuses["ExpectationFailed"] = 417] = "ExpectationFailed"; /** * I'm a teapot * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2324#section-2.3.2} */ NodeJsStatuses[NodeJsStatuses["ImaTeapot"] = 418] = "ImaTeapot"; /** * Misdirected Request * @summary Server is not able to produce a response * * @see [RFC]{@link https://tools.ietf.org/html/rfc7540#section-9.1.2} */ NodeJsStatuses[NodeJsStatuses["MisdirectedRequest"] = 421] = "MisdirectedRequest"; /** * Unprocessable Entity * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.3} */ NodeJsStatuses[NodeJsStatuses["UnprocessableEntity"] = 422] = "UnprocessableEntity"; /** * Locked * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.4} */ NodeJsStatuses[NodeJsStatuses["Locked"] = 423] = "Locked"; /** * Failed Dependency * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.5} */ NodeJsStatuses[NodeJsStatuses["FailedDependency"] = 424] = "FailedDependency"; /** * Upgrade Required * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2817#section-6} */ NodeJsStatuses[NodeJsStatuses["UpgradeRequired"] = 426] = "UpgradeRequired"; /** * Precondition Required * @summary The origin server requires the request to be conditional * * @see [RFC]{@link https://tools.ietf.org/html/rfc6585#section-3} */ NodeJsStatuses[NodeJsStatuses["PreconditionRequired"] = 428] = "PreconditionRequired"; /** * Too Many Requests * @summary The user has sent too many requests in a given amount of time ("rate limiting") * * @see [RFC]{@link https://tools.ietf.org/html/rfc6585#section-4} */ NodeJsStatuses[NodeJsStatuses["TooManyRequests"] = 429] = "TooManyRequests"; /** * Request Header Fields Too Large * @summary The server is unwilling to process the request because its header fields are too large * * @see [RFC]{@link https://tools.ietf.org/html/rfc6585#section-5} */ NodeJsStatuses[NodeJsStatuses["RequestHeaderFieldsTooLarge"] = 431] = "RequestHeaderFieldsTooLarge"; /** * Unavailable For Legal Reasons * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc7725#section-3} */ NodeJsStatuses[NodeJsStatuses["UnavailableForLegalReasons"] = 451] = "UnavailableForLegalReasons"; /** * Internal Server Error * @summary Server got itself in trouble * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.1} */ NodeJsStatuses[NodeJsStatuses["InternalServerError"] = 500] = "InternalServerError"; /** * Not Implemented * @summary Server does not support this operation * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.2} */ NodeJsStatuses[NodeJsStatuses["NotImplemented"] = 501] = "NotImplemented"; /** * Bad Gateway * @summary Invalid responses from another server/proxy * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.3} */ NodeJsStatuses[NodeJsStatuses["BadGateway"] = 502] = "BadGateway"; /** * Service Unavailable * @summary The server cannot process the request due to a high load * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.4} */ NodeJsStatuses[NodeJsStatuses["ServiceUnavailable"] = 503] = "ServiceUnavailable"; /** * Gateway Timeout * @summary The gateway server did not receive a timely response * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.5} */ NodeJsStatuses[NodeJsStatuses["GatewayTimeout"] = 504] = "GatewayTimeout"; /** * HTTP Version Not Supported * @summary Cannot fulfill request * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.6.6} */ NodeJsStatuses[NodeJsStatuses["HTTPVersionNotSupported"] = 505] = "HTTPVersionNotSupported"; /** * Variant Also Negotiates * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2295#section-8.1} */ NodeJsStatuses[NodeJsStatuses["VariantAlsoNegotiates"] = 506] = "VariantAlsoNegotiates"; /** * Insufficient Storage * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2518#section-10.6} */ NodeJsStatuses[NodeJsStatuses["InsufficientStorage"] = 507] = "InsufficientStorage"; /** * Loop Detected * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc5842#section-7.2} */ NodeJsStatuses[NodeJsStatuses["LoopDetected"] = 508] = "LoopDetected"; /** * @summary TODO: summarize * */ NodeJsStatuses[NodeJsStatuses["BandwidthLimitExceeded"] = 509] = "BandwidthLimitExceeded"; /** * Not Extended * @summary TODO: summarize * * @see [RFC]{@link https://tools.ietf.org/html/rfc2774#section-7} */ NodeJsStatuses[NodeJsStatuses["NotExtended"] = 510] = "NotExtended"; /** * Network Authentication Required * @summary The client needs to authenticate to gain network access * * @see [RFC]{@link https://tools.ietf.org/html/rfc6585#section-6} */ NodeJsStatuses[NodeJsStatuses["NetworkAuthenticationRequired"] = 511] = "NetworkAuthenticationRequired"; })(NodeJsStatuses = exports.NodeJsStatuses || (exports.NodeJsStatuses = {})); /** * HTTP Status Codes as defined by Spring Framework * @see {@link https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/http/HttpStatus.html} */ var SpringStatuses; (function (SpringStatuses) { /** * Continue * @summary Request received, please continue * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.2.1} */ SpringStatuses[SpringStatuses["CONTINUE"] = 100] = "CONTINUE"; /** * Switching Protocols * @summary Switching to new protocol; obey Upgrade header * * @see [RFC]{@link https://tools.ietf.org/html/rfc7231#section-6.2.2} */ SpringStatuses[SpringStatuses["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS"; /** * Processing * @summary TODO: summarize * * @deprecat