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.
@sanity/agent-types
Readonly
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.