Sanity Library Reference Docs
    Preparing search index...

    Type Alias ApiErrorBodyBeta

    ApiErrorBody: Omit<Context.components["schemas"]["ApiErrorBody"], "code"> & {
        code: ErrorCode | string & {};
    }

    The body of a Context API error response. code is one of the known ErrorCodes, or a code the API added after this client was released.