UNPKG

@js-thing/http-status-codes

Version:

Contains properly documented HTTP status code enums, reason phrases and helpers as defined in RFC

9 lines (8 loc) 285 B
declare const _default: (statusCode: number) => string | undefined; /** * Get the reason phrase for a given status code * * @param statusCode - e.g. 200 * @returns - The corresponding reason phrase as `string` for the given input `undefined` otherwise */ export default _default;