Sanity Library Reference Docs
    Preparing search index...

    Thrown when the Blueprints API answers a Stack read with an error status

    A network failure rejects with the error from fetch instead.

    Hierarchy

    • Error
      • StackReadError
    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • stackId: string
      • status: number
      • message: string
      • OptionalerrorCode: string

      Returns StackReadError

    Properties

    errorCode?: string

    The errorCode in the response body, when it has one

    name: string = 'StackReadError'
    stackId: string

    The Stack id that was read

    status: number

    The HTTP status of the response