code for program logic and an error string for people. Management endpoints retain their native error envelopes, including Zod validation issues; inspect the operation reference and use HTTP status codes rather than assuming every endpoint returns the chat error shape.
OAuth token errors use the standard
error field, including invalid_client, invalid_scope, invalid_target, and unsupported_grant_type.