Esposter
    Preparing search index...

    Class MockRestError

    Hierarchy

    • RestError
      • MockRestError
    Index
    • Parameters

      • message: string
      • statusCode: number

      Returns MockRestError

    cause?: unknown
    code?: string

    The code of the error itself (use statics on RestError if possible.)

    details?: unknown

    Bonus property set by the throw site.

    message: string
    name: string
    request?: PipelineRequest

    The request that was made. This property is non-enumerable.

    response?: PipelineResponse

    The response received (if any.) This property is non-enumerable.

    stack?: string
    statusCode?: number

    The HTTP status code of the request (if applicable.)

    PARSE_ERROR: string

    This means that parsing the response from the server failed. It may have been malformed.

    REQUEST_SEND_ERROR: string

    Something went wrong when making the request. This means the actual request failed for some reason, such as a DNS issue or the connection being lost.