tsunamy
Version:
A new typesript framework
89 lines (88 loc) • 3.3 kB
TypeScript
export declare class HttpStatus {
private code;
private reasonPhrase;
static CONTINUE: HttpStatus;
static SWITCHING_PROTOCOLS: HttpStatus;
static PROCESSING: HttpStatus;
static CHECKPOINT: HttpStatus;
static OK: HttpStatus;
static CREATED: HttpStatus;
static ACCEPTED: HttpStatus;
static NON_AUTHORITATIVE_INFORMATION: HttpStatus;
static NO_CONTENT: HttpStatus;
static RESET_CONTENT: HttpStatus;
static PARTIAL_CONTENT: HttpStatus;
static MULTI_STATUS: HttpStatus;
static ALREADY_REPORTED: HttpStatus;
static IM_USED: HttpStatus;
static MULTIPLE_CHOICES: HttpStatus;
static MOVED_PERMANENTLY: HttpStatus;
static FOUND: HttpStatus;
static MOVED_TEMPORARILY: HttpStatus;
static SEE_OTHER: HttpStatus;
static NOT_MODIFIED: HttpStatus;
static USE_PROXY: HttpStatus;
static TEMPORARY_REDIRECT: HttpStatus;
static PERMANENT_REDIRECT: HttpStatus;
static BAD_REQUEST: HttpStatus;
static UNAUTHORIZED: HttpStatus;
static PAYMENT_REQUIRED: HttpStatus;
static FORBIDDEN: HttpStatus;
static NOT_FOUND: HttpStatus;
static METHOD_NOT_ALLOWED: HttpStatus;
static NOT_ACCEPTABLE: HttpStatus;
static PROXY_AUTHENTICATION_REQUIRED: HttpStatus;
static REQUEST_TIMEOUT: HttpStatus;
static CONFLICT: HttpStatus;
static GONE: HttpStatus;
static LENGTH_REQUIRED: HttpStatus;
static PRECONDITION_FAILED: HttpStatus;
static PAYLOAD_TOO_LARGE: HttpStatus;
static REQUEST_ENTITY_TOO_LARGE: HttpStatus;
static URI_TOO_LONG: HttpStatus;
static REQUEST_URI_TOO_LONG: HttpStatus;
static UNSUPPORTED_MEDIA_TYPE: HttpStatus;
static REQUESTED_RANGE_NOT_SATISFIABLE: HttpStatus;
static EXPECTATION_FAILED: HttpStatus;
static I_AM_A_TEAPOT: HttpStatus;
static INSUFFICIENT_SPACE_ON_RESOURCE: HttpStatus;
static METHOD_FAILURE: HttpStatus;
static DESTINATION_LOCKED: HttpStatus;
static UNPROCESSABLE_ENTITY: HttpStatus;
static LOCKED: HttpStatus;
static FAILED_DEPENDENCY: HttpStatus;
static TOO_EARLY: HttpStatus;
static UPGRADE_REQUIRED: HttpStatus;
static PRECONDITION_REQUIRED: HttpStatus;
static TOO_MANY_REQUESTS: HttpStatus;
static REQUEST_HEADER_FIELDS_TOO_LARGE: HttpStatus;
static UNAVAILABLE_FOR_LEGAL_REASONS: HttpStatus;
static INTERNAL_SERVER_ERROR: HttpStatus;
static NOT_IMPLEMENTED: HttpStatus;
static BAD_GATEWAY: HttpStatus;
static SERVICE_UNAVAILABLE: HttpStatus;
static GATEWAY_TIMEOUT: HttpStatus;
static HTTP_VERSION_NOT_SUPPORTED: HttpStatus;
static VARIANT_ALSO_NEGOTIATES: HttpStatus;
static INSUFFICIENT_STORAGE: HttpStatus;
static LOOP_DETECTED: HttpStatus;
static BANDWIDTH_LIMIT_EXCEEDED: HttpStatus;
static NOT_EXTENDED: HttpStatus;
static NETWORK_AUTHENTICATION_REQUIRED: HttpStatus;
constructor(code: number, reasonPhrase: string);
/**
* Get first HttpStatus matching a code
*
* @param code searched
* @return HttpStatus matching code searched
*/
static getValueOf(code: number): HttpStatus;
/**
* Return the integer value of this status code
*/
getCode(): number;
/**
* Return the reason phrase of this status code
*/
getReasonPhrase(): string;
}