Class FetchError

The FetchError object indicates an error when request to Open Cloud Server could not be performed. A FetchError is typically (but not exclusively) thrown when a network error occurs, access denied, or object not found.

Hierarchy

  • Error
    • FetchError

Constructors

  • Parameters

    • status: number

      The HTTP status code of the response.

    • Optionalmessage: string

      Error message.

    Returns FetchError

Properties

status: number

HTTP status code of the response.

statusText: string

Status message corresponding to the status code.

prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void