Sanity Library Reference Docs
    Preparing search index...

    Class SanityAgentError

    Custom error class for Sanity Agent API errors. The body is parsed from the JSON response and follows the HeadlessErrorResponse shape defined in @sanity/agent-types.

    Hierarchy

    • Error
      • SanityAgentError
    Index

    Constructors

    Properties

    Constructors

    Properties

    body: Partial<HeadlessErrorResponse>
    isRetryable: boolean
    status: number