A custom error for parsing and handling Error HTTP responses from Rev.

Hierarchy

  • Error
    • RevError

Properties

Methods

Properties

code: string

Rev-specific error code

detail: string

Additional error message returned by Rev API

status: number

HTTP Status Code

url: string

Request URL/endpoint

Methods

  • Consume a HTTP Response's body to create a new Error instance

    Parameters

    • response: Response

    Returns Promise<RevError>