---
title: "Errors"
description: "The RFC 9457 Problem Details envelope; branch on the machine code."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.wego.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors

Every error is an RFC 9457 Problem Details body (`application/problem+json`), the `Problem` schema every endpoint shares. Branch on `code` (a closed enum), never on the human `title` or `detail`. `trace_id` equals the `x-trace-id` response header; quote it when reporting an issue.

Source: https://docs.wego.com/api/errors/index.mdx
