/** * HTTP status code constants for HTTP Common library. * Each constant is a numeric HTTP status code with SCREAMING_SNAKE_CASE naming convention. * * @example * ```ts * import { HTTP_STATUS_OK, HTTP_STATUS_NOT_FOUND } from '@pawells/http-common'; * * const statusCode = HTTP_STATUS_OK; // 200 * ``` */ /** * HTTP status code: 100 Continue * The server has received the request headers, and the client should proceed to send the request body. * * @defaultValue 100 * * @example * ```ts * import { HTTP_STATUS_CONTINUE } from '@pawells/http-common'; * const code = HTTP_STATUS_CONTINUE; // 100 * ``` */ export declare const HTTP_STATUS_CONTINUE = 100; /** * HTTP status code: 101 Switching Protocols * The requester has asked the server to switch protocols, and the server has agreed to do so. * * @defaultValue 101 * * @example * ```ts * import { HTTP_STATUS_SWITCHING_PROTOCOLS } from '@pawells/http-common'; * const code = HTTP_STATUS_SWITCHING_PROTOCOLS; // 101 * ``` */ export declare const HTTP_STATUS_SWITCHING_PROTOCOLS = 101; /** * HTTP status code: 102 Processing * A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request. * * @defaultValue 102 * * @example * ```ts * import { HTTP_STATUS_PROCESSING } from '@pawells/http-common'; * const code = HTTP_STATUS_PROCESSING; // 102 * ``` */ export declare const HTTP_STATUS_PROCESSING = 102; /** * HTTP status code: 103 Early Hints * Used to return some response headers before the final HTTP message. * * @defaultValue 103 * * @example * ```ts * import { HTTP_STATUS_EARLY_HINTS } from '@pawells/http-common'; * const code = HTTP_STATUS_EARLY_HINTS; // 103 * ``` */ export declare const HTTP_STATUS_EARLY_HINTS = 103; /** * HTTP status code: 200 OK * The request was successful and the response body contains the requested data. * * @defaultValue 200 * * @example * ```ts * import { HTTP_STATUS_OK } from '@pawells/http-common'; * const code = HTTP_STATUS_OK; // 200 * ``` */ export declare const HTTP_STATUS_OK = 200; /** * HTTP status code: 201 Created * The request was successful and a new resource was created as a result of the request. * * @defaultValue 201 * * @example * ```ts * import { HTTP_STATUS_CREATED } from '@pawells/http-common'; * const code = HTTP_STATUS_CREATED; // 201 * ``` */ export declare const HTTP_STATUS_CREATED = 201; /** * HTTP status code: 202 Accepted * The request has been accepted for processing, but the processing has not been completed. * * @defaultValue 202 * * @example * ```ts * import { HTTP_STATUS_ACCEPTED } from '@pawells/http-common'; * const code = HTTP_STATUS_ACCEPTED; // 202 * ``` */ export declare const HTTP_STATUS_ACCEPTED = 202; /** * HTTP status code: 204 No Content * The server successfully fulfilled the request and there is no additional content to send in the response. * * @defaultValue 204 * * @example * ```ts * import { HTTP_STATUS_NO_CONTENT } from '@pawells/http-common'; * const code = HTTP_STATUS_NO_CONTENT; // 204 * ``` */ export declare const HTTP_STATUS_NO_CONTENT = 204; /** * HTTP status code: 206 Partial Content * The server is delivering only part of the resource (byte serving) due to a range header sent by the client. * * @defaultValue 206 * * @example * ```ts * import { HTTP_STATUS_PARTIAL_CONTENT } from '@pawells/http-common'; * const code = HTTP_STATUS_PARTIAL_CONTENT; // 206 * ``` */ export declare const HTTP_STATUS_PARTIAL_CONTENT = 206; /** * HTTP status code: 300 Multiple Choices * The request has more than one possible response. The user-agent or user should choose one of them. * * @defaultValue 300 * * @example * ```ts * import { HTTP_STATUS_MULTIPLE_CHOICES } from '@pawells/http-common'; * const code = HTTP_STATUS_MULTIPLE_CHOICES; // 300 * ``` */ export declare const HTTP_STATUS_MULTIPLE_CHOICES = 300; /** * HTTP status code: 301 Moved Permanently * The URL of the requested resource has been changed permanently; use the new URL provided in the response. * * @defaultValue 301 * * @example * ```ts * import { HTTP_STATUS_MOVED_PERMANENTLY } from '@pawells/http-common'; * const code = HTTP_STATUS_MOVED_PERMANENTLY; // 301 * ``` */ export declare const HTTP_STATUS_MOVED_PERMANENTLY = 301; /** * HTTP status code: 302 Found * The resource was found but at a different URI. The request should be repeated at the new URI. * * @defaultValue 302 * * @example * ```ts * import { HTTP_STATUS_FOUND } from '@pawells/http-common'; * const code = HTTP_STATUS_FOUND; // 302 * ``` */ export declare const HTTP_STATUS_FOUND = 302; /** * HTTP status code: 304 Not Modified * The resource has not been modified since the version specified by the request headers. * * @defaultValue 304 * * @example * ```ts * import { HTTP_STATUS_NOT_MODIFIED } from '@pawells/http-common'; * const code = HTTP_STATUS_NOT_MODIFIED; // 304 * ``` */ export declare const HTTP_STATUS_NOT_MODIFIED = 304; /** * HTTP status code: 307 Temporary Redirect * The requested resource temporarily resides at a different URI. The client must repeat the request at the new URI. * * @defaultValue 307 * * @example * ```ts * import { HTTP_STATUS_TEMPORARY_REDIRECT } from '@pawells/http-common'; * const code = HTTP_STATUS_TEMPORARY_REDIRECT; // 307 * ``` */ export declare const HTTP_STATUS_TEMPORARY_REDIRECT = 307; /** * HTTP status code: 308 Permanent Redirect * The requested resource permanently resides at a different URI. The client should repeat all future requests at the new URI. * * @defaultValue 308 * * @example * ```ts * import { HTTP_STATUS_PERMANENT_REDIRECT } from '@pawells/http-common'; * const code = HTTP_STATUS_PERMANENT_REDIRECT; // 308 * ``` */ export declare const HTTP_STATUS_PERMANENT_REDIRECT = 308; /** * HTTP status code: 400 Bad Request * The server cannot or will not process the request due to client error (e.g., malformed syntax). * * @defaultValue 400 * * @example * ```ts * import { HTTP_STATUS_BAD_REQUEST } from '@pawells/http-common'; * const code = HTTP_STATUS_BAD_REQUEST; // 400 * ``` */ export declare const HTTP_STATUS_BAD_REQUEST = 400; /** * HTTP status code: 401 Unauthorized * Authentication is required and has failed or has not been provided. * * @defaultValue 401 * * @example * ```ts * import { HTTP_STATUS_UNAUTHORIZED } from '@pawells/http-common'; * const code = HTTP_STATUS_UNAUTHORIZED; // 401 * ``` */ export declare const HTTP_STATUS_UNAUTHORIZED = 401; /** * HTTP status code: 403 Forbidden * The client does not have permission to access the requested resource. * * @defaultValue 403 * * @example * ```ts * import { HTTP_STATUS_FORBIDDEN } from '@pawells/http-common'; * const code = HTTP_STATUS_FORBIDDEN; // 403 * ``` */ export declare const HTTP_STATUS_FORBIDDEN = 403; /** * HTTP status code: 404 Not Found * The requested resource could not be found on the server. * * @defaultValue 404 * * @example * ```ts * import { HTTP_STATUS_NOT_FOUND } from '@pawells/http-common'; * const code = HTTP_STATUS_NOT_FOUND; // 404 * ``` */ export declare const HTTP_STATUS_NOT_FOUND = 404; /** * HTTP status code: 405 Method Not Allowed * The request method is not supported for the requested resource. * * @defaultValue 405 * * @example * ```ts * import { HTTP_STATUS_METHOD_NOT_ALLOWED } from '@pawells/http-common'; * const code = HTTP_STATUS_METHOD_NOT_ALLOWED; // 405 * ``` */ export declare const HTTP_STATUS_METHOD_NOT_ALLOWED = 405; /** * HTTP status code: 406 Not Acceptable * The server cannot produce a response matching the list of acceptable values defined in the request's proactive content negotiation headers. * * @defaultValue 406 * * @example * ```ts * import { HTTP_STATUS_NOT_ACCEPTABLE } from '@pawells/http-common'; * const code = HTTP_STATUS_NOT_ACCEPTABLE; // 406 * ``` */ export declare const HTTP_STATUS_NOT_ACCEPTABLE = 406; /** * HTTP status code: 408 Request Timeout * The server timed out waiting for the request. The client did not produce a request within the time that the server was prepared to wait. * * @defaultValue 408 * * @example * ```ts * import { HTTP_STATUS_REQUEST_TIMEOUT } from '@pawells/http-common'; * const code = HTTP_STATUS_REQUEST_TIMEOUT; // 408 * ``` */ export declare const HTTP_STATUS_REQUEST_TIMEOUT = 408; /** * HTTP status code: 411 Length Required * The server refuses to accept the request without a defined Content-Length header. * * @defaultValue 411 * * @example * ```ts * import { HTTP_STATUS_LENGTH_REQUIRED } from '@pawells/http-common'; * const code = HTTP_STATUS_LENGTH_REQUIRED; // 411 * ``` */ export declare const HTTP_STATUS_LENGTH_REQUIRED = 411; /** * HTTP status code: 412 Precondition Failed * The client has indicated preconditions in its headers which the server does not meet. * * @defaultValue 412 * * @example * ```ts * import { HTTP_STATUS_PRECONDITION_FAILED } from '@pawells/http-common'; * const code = HTTP_STATUS_PRECONDITION_FAILED; // 412 * ``` */ export declare const HTTP_STATUS_PRECONDITION_FAILED = 412; /** * HTTP status code: 413 Payload Too Large * The request entity is larger than limits defined by server; the server might close the connection or return an Retry-After header field. * * @defaultValue 413 * * @example * ```ts * import { HTTP_STATUS_PAYLOAD_TOO_LARGE } from '@pawells/http-common'; * const code = HTTP_STATUS_PAYLOAD_TOO_LARGE; // 413 * ``` */ export declare const HTTP_STATUS_PAYLOAD_TOO_LARGE = 413; /** * HTTP status code: 414 URI Too Long * The URI provided was too long for the server to process. This can occur with POST requests converted to GET requests with long query information. * * @defaultValue 414 * * @example * ```ts * import { HTTP_STATUS_URI_TOO_LONG } from '@pawells/http-common'; * const code = HTTP_STATUS_URI_TOO_LONG; // 414 * ``` */ export declare const HTTP_STATUS_URI_TOO_LONG = 414; /** * HTTP status code: 409 Conflict * The request could not be completed due to a conflict with existing data (e.g., duplicate entry). * * @defaultValue 409 * * @example * ```ts * import { HTTP_STATUS_CONFLICT } from '@pawells/http-common'; * const code = HTTP_STATUS_CONFLICT; // 409 * ``` */ export declare const HTTP_STATUS_CONFLICT = 409; /** * HTTP status code: 410 Gone * The requested resource is no longer available and will not be available again. * This is different from a 404 (Not Found) because the resource was previously available. * * @defaultValue 410 * * @example * ```ts * import { HTTP_STATUS_GONE } from '@pawells/http-common'; * const code = HTTP_STATUS_GONE; // 410 * ``` */ export declare const HTTP_STATUS_GONE = 410; /** * HTTP status code: 415 Unsupported Media Type * The request entity has a media type which the server does not support. * For example, the client uploaded an image file but the server only accepts JSON. * * @defaultValue 415 * * @example * ```ts * import { HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE } from '@pawells/http-common'; * const code = HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE; // 415 * ``` */ export declare const HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE = 415; /** * HTTP status code: 422 Unprocessable Entity * The request was well-formed but contains semantic errors and cannot be processed. * * @defaultValue 422 * * @example * ```ts * import { HTTP_STATUS_UNPROCESSABLE_ENTITY } from '@pawells/http-common'; * const code = HTTP_STATUS_UNPROCESSABLE_ENTITY; // 422 * ``` */ export declare const HTTP_STATUS_UNPROCESSABLE_ENTITY = 422; /** * HTTP status code: 451 Unavailable For Legal Reasons * The server cannot provide the requested resource due to legal reasons, such as censorship or government-mandated content filtering. * * @defaultValue 451 * * @example * ```ts * import { HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS } from '@pawells/http-common'; * const code = HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS; // 451 * ``` */ export declare const HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS = 451; /** * HTTP status code: 429 Too Many Requests * The user has sent too many requests in a given amount of time (rate limiting). * * @defaultValue 429 * * @example * ```ts * import { HTTP_STATUS_TOO_MANY_REQUESTS } from '@pawells/http-common'; * const code = HTTP_STATUS_TOO_MANY_REQUESTS; // 429 * ``` */ export declare const HTTP_STATUS_TOO_MANY_REQUESTS = 429; /** * HTTP status code: 500 Internal Server Error * The server encountered an unexpected condition that prevented it from fulfilling the request. * * @defaultValue 500 * * @example * ```ts * import { HTTP_STATUS_INTERNAL_SERVER_ERROR } from '@pawells/http-common'; * const code = HTTP_STATUS_INTERNAL_SERVER_ERROR; // 500 * ``` */ export declare const HTTP_STATUS_INTERNAL_SERVER_ERROR = 500; /** * HTTP status code: 501 Not Implemented * The server does not support the functionality required to fulfill the request. * * @defaultValue 501 * * @example * ```ts * import { HTTP_STATUS_NOT_IMPLEMENTED } from '@pawells/http-common'; * const code = HTTP_STATUS_NOT_IMPLEMENTED; // 501 * ``` */ export declare const HTTP_STATUS_NOT_IMPLEMENTED = 501; /** * HTTP status code: 502 Bad Gateway * The server received an invalid response from an upstream server. * * @defaultValue 502 * * @example * ```ts * import { HTTP_STATUS_BAD_GATEWAY } from '@pawells/http-common'; * const code = HTTP_STATUS_BAD_GATEWAY; // 502 * ``` */ export declare const HTTP_STATUS_BAD_GATEWAY = 502; /** * HTTP status code: 503 Service Unavailable * The server is currently unable to handle the request due to temporary overloading or maintenance. * * @defaultValue 503 * * @example * ```ts * import { HTTP_STATUS_SERVICE_UNAVAILABLE } from '@pawells/http-common'; * const code = HTTP_STATUS_SERVICE_UNAVAILABLE; // 503 * ``` */ export declare const HTTP_STATUS_SERVICE_UNAVAILABLE = 503; /** * HTTP status code: 504 Gateway Timeout * The server did not receive a timely response from an upstream server. * * @defaultValue 504 * * @example * ```ts * import { HTTP_STATUS_GATEWAY_TIMEOUT } from '@pawells/http-common'; * const code = HTTP_STATUS_GATEWAY_TIMEOUT; // 504 * ``` */ export declare const HTTP_STATUS_GATEWAY_TIMEOUT = 504; /** * HTTP status code: 506 Variant Also Negotiates * The server has an internal configuration error where the chosen variant resource is itself a negotiable resource. * * @defaultValue 506 * * @example * ```ts * import { HTTP_STATUS_VARIANT_ALSO_NEGOTIATES } from '@pawells/http-common'; * const code = HTTP_STATUS_VARIANT_ALSO_NEGOTIATES; // 506 * ``` */ export declare const HTTP_STATUS_VARIANT_ALSO_NEGOTIATES = 506; /** * HTTP status code: 507 Insufficient Storage * The server is unable to store the representation needed to complete the request. * * @defaultValue 507 * * @example * ```ts * import { HTTP_STATUS_INSUFFICIENT_STORAGE } from '@pawells/http-common'; * const code = HTTP_STATUS_INSUFFICIENT_STORAGE; // 507 * ``` */ export declare const HTTP_STATUS_INSUFFICIENT_STORAGE = 507; /** * HTTP status code: 508 Loop Detected * The server detected an infinite loop while processing a request (e.g., excessive WebDAV redirects). * * @defaultValue 508 * * @example * ```ts * import { HTTP_STATUS_LOOP_DETECTED } from '@pawells/http-common'; * const code = HTTP_STATUS_LOOP_DETECTED; // 508 * ``` */ export declare const HTTP_STATUS_LOOP_DETECTED = 508; /** * HTTP status code: 510 Not Extended * The server requires further extensions to the request to fulfill it. * * @defaultValue 510 * * @example * ```ts * import { HTTP_STATUS_NOT_EXTENDED } from '@pawells/http-common'; * const code = HTTP_STATUS_NOT_EXTENDED; // 510 * ``` */ export declare const HTTP_STATUS_NOT_EXTENDED = 510; /** * HTTP status code: 511 Network Authentication Required * The client must authenticate to gain network access (e.g., captive portals). * * @defaultValue 511 * * @example * ```ts * import { HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED } from '@pawells/http-common'; * const code = HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED; // 511 * ``` */ export declare const HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED = 511; //# sourceMappingURL=states.d.ts.map