Documentation
    Preparing search index...

    Interface IProps<T>

    JSON representation of HttpError.

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

    Type Parameters

    • T

      Response body type

    Index

    Properties

    headers: Record<string, string | string[]>

    Response headers.

    message: T

    Response body (parsed JSON or original string).

    method: "GET" | "QUERY" | "DELETE" | "POST" | "PUT" | "PATCH" | "HEAD"

    HTTP method.

    path: string

    Request path or URL.

    status: number

    HTTP status code.