@lesnoypudge/utils
Version:
lesnoypudge's utils
18 lines (17 loc) • 531 B
TypeScript
/**
* Status codes commonly returned by web servers.
*/
export declare namespace HTTP_STATUS_CODES {
const OK = 200;
type OK = typeof OK;
const BAD_REQUEST = 400;
type BAD_REQUEST = typeof BAD_REQUEST;
const UNAUTHORIZED = 401;
type UNAUTHORIZED = typeof UNAUTHORIZED;
const FORBIDDEN = 403;
type FORBIDDEN = typeof FORBIDDEN;
const NOT_FOUND = 404;
type NOT_FOUND = typeof NOT_FOUND;
const INTERNAL_SERVER_ERROR = 500;
type INTERNAL_SERVER_ERROR = typeof INTERNAL_SERVER_ERROR;
}