Schema
API Error
The standard envelope for application-generated API errors.
Overview
Properties
error
string
Required
A stable machine-readable identifier. Clients must tolerate unknown future values and fall back to the HTTP status.
Pattern
^[a-z][a-z0-9_]{0,62}$
description
string
Required
An actionable human-readable explanation. Clients must not branch on this text.
Min length
1
fields
array
Required
Malformed request fields for a `bad_request` response. Domain refusal responses always return an empty array.
Array items
Items
reference
References API Error Field.
Used by
Raw YAML
Download source
title: API Error
type: object
x-tags:
- Models
description: The standard envelope for application-generated API errors.
required:
- error
- description
- fields
properties:
error:
type: string
pattern: '^[a-z][a-z0-9_]{0,62}$'
description: A stable machine-readable identifier. Clients must tolerate unknown future values and fall back to the HTTP status.
description:
type: string
minLength: 1
description: An actionable human-readable explanation. Clients must not branch on this text.
fields:
type: array
description: Malformed request fields for a `bad_request` response. Domain refusal responses always return an empty array.
items:
$ref: ./ApiErrorField.yaml