A small and simple package that converts http error codes to a user-friendly text so your users can understand problems on your server.
Call:
import toText from "error-to-text";
const error = toText(404);
console.log(error.title); // -> Not Found
Return Object:
{
code: number,
title: string,
description:string
} | undefined