Returned type of HttpError.toJSON method.

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

Type Parameters

  • T

Properties

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