export type HttpStatusError = Error & { statusCode: number | undefined; }; export default function httpStatusError(endpoint: string, statusCode: number | undefined): HttpStatusError | null;