Where does the contract define the error body? In components.schemas: ErrorEnvelope is the error body and ErrorCode lists the 20 codes. More: The REST API, Reading the OpenAPI contract