API Style Guides · Example Payload

Aip 193 Errors

ErrorsREST

Aip 193 Errors is an example object payload from API Style Guides, with 13 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

$schemaidguideleveltitlesummarycategoryrationaleappliesTosourceUrlexamplesrelatedRulestags

Example Payload

aip-193-errors.json Raw ↑
{
  "$schema": "../json-schema/style-guide-rule-schema.json",
  "id": "aip-193",
  "guide": "style-guides:google-aip",
  "level": "MUST",
  "title": "Use Standardized Error Model and Codes",
  "summary": "Errors are returned with an HTTP status code and a structured body containing a numeric/code, message, and optional details. Service error codes map to a stable enumeration shared across Google APIs.",
  "category": "Errors",
  "rationale": "A consistent error shape across all APIs lets clients (and SDKs) handle failures uniformly regardless of which API surfaced them.",
  "appliesTo": ["REST", "gRPC"],
  "sourceUrl": "https://google.aip.dev/193",
  "examples": [
    {
      "kind": "good",
      "language": "json",
      "snippet": "{\n  \"error\": {\n    \"code\": 404,\n    \"message\": \"Book 'publishers/123/books/999' was not found.\",\n    \"status\": \"NOT_FOUND\"\n  }\n}"
    }
  ],
  "relatedRules": ["rfc-9457", "ms-azure-error-response", "paypal-errors"],
  "tags": ["Errors", "REST"]
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/aip-193-errors"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.