miter
Version:
A typescript web framework based on ExpressJs based loosely on SailsJs
17 lines (16 loc) • 869 B
TypeScript
export declare function httpStatusType(statusCode: number): number;
export declare const HTTP_STATUS_TYPE_INFO = 1;
export declare const HTTP_STATUS_TYPE_SUCCESS = 2;
export declare const HTTP_STATUS_TYPE_REDIRECTION = 3;
export declare const HTTP_STATUS_TYPE_CLIENT_ERROR = 4;
export declare const HTTP_STATUS_TYPE_SERVER_ERROR = 5;
export declare const HTTP_STATUS_OK = 200;
export declare const HTTP_STATUS_PARTIAL_CONTENT = 206;
export declare const HTTP_STATUS_ERROR = 400;
export declare const HTTP_STATUS_NOT_LOGGED_IN = 401;
export declare const HTTP_STATUS_UNAUTHORIZED = 403;
export declare const HTTP_STATUS_NOT_FOUND = 404;
export declare const HTTP_STATUS_WRONG_RANGE = 416;
export declare const HTTP_STATUS_UNPROCESSABLE_ENTITY = 422;
export declare const HTTP_STATUS_TOO_MANY_REQUESTS = 429;
export declare const HTTP_STATUS_INTERNAL_SERVER_ERROR = 500;