http-response-status-code
Version:
A lightweight utility for retrieving HTTP status codes, names, and descriptions. Easily validate, categorize, and manage HTTP responses with built-in methods for informational, success, redirection, client, and server error codes.
8 lines (7 loc) • 319 B
TypeScript
import { IHttpStatusMappings } from "../interfaces/";
/**
* The HTTP status code mappings.
* @constant {IHttpStatusMappings} HTTP_STATUS_MAPPINGS - The HTTP Status Code Mappings.
* @type {Object<string, {code: number, description: string}>}
*/
export declare const HTTP_STATUS_MAPPINGS: IHttpStatusMappings;