function statusTitle
Since 0.1.0
statusTitle(statusCode: number): string

Resolves the human-readable title for a status code, falling back to a generic title for codes outside the well-known set.

Parameters

statusCode: number

The HTTP status code

Return Type

string

A human-readable title

Usage

import { statusTitle } from "exceptions/src/index.ts";