Documentation
    Preparing search index...

    Class HttpError

    Error thrown when HTTP request fails with non-2xx status.

    HttpError is thrown by HttpLlm.execute and HttpMigration.execute when the server returns a non-2xx status code. Contains the full HTTP context: method, path, status, headers, and response body.

    The response body is available via message (raw string) or toJSON (parsed JSON). For non-throwing behavior, use HttpLlm.propagate or HttpMigration.propagate instead.

    Jeongho Nam - https://github.com/samchon

    Hierarchy

    • Error
      • HttpError
    Index

    Constructors

    • Parameters

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

        HTTP method

      • path: string

        Request path or URL

      • status: number

        HTTP status code

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

        Response headers

      • message: string

        Error message (response body)

      Returns HttpError

    Properties

    cause?: unknown
    headers: Record<string, string | string[]>

    Response headers from server.

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

    HTTP method used for the request.

    name: string
    path: string

    Request path or URL.

    stack?: string
    status: number

    HTTP status code from server.

    Methods