TypedRest for TypeScript - v0.6.4
    Preparing search index...

    Class HttpError

    Thrown on HTTP response with a non-successful status code (4xx or 5xx).

    Hierarchy (View Summary)

    Index
    • Creates a new HTTP error.

      Parameters

      • message: string

        The error message.

      • status: HttpStatusCode

        The HTTP status code.

      • Optionaldata: any

        Additional error data.

      • OptionalretryAfter: number

        The time in milliseconds the server asked clients to wait before retrying, as specified by the http!HttpHeader.RetryAfter header.

      Returns HttpError

    data?: any

    Additional error data.

    retryAfter?: number

    The time in milliseconds the server asked clients to wait before retrying, as specified by the http!HttpHeader.RetryAfter header.

    The HTTP status code.