Returned type of HttpError.toJSON method.

interface IProps<T> {
    headers: Record<string, string | string[]>;
    message: T;
    method: "GET" | "DELETE" | "POST" | "PUT" | "PATCH" | "HEAD";
    path: string;
    status: number;
}

Type Parameters

  • T

Properties

headers: Record<string, string | string[]>
message: T
method: "GET" | "DELETE" | "POST" | "PUT" | "PATCH" | "HEAD"
path: string
status: number