error.code is an integer and always matches the HTTP status of the response.
Shape
request_id— correlate with theX-Request-Idresponse header.details— optional object; extra keys allowed for forward compatibility.
HTTP status reference
Distinguish multiple 401 or 400 cases using
message and details.
Validation details.reason (create tag / project code)
When code is 400 from those endpoints, details.reason may be:
invalid_json— body is not valid JSONrequired_field— e.g. missingname(details.fieldmay bename)duplicate_name— name already exists for the team (details.fieldmay bename)
openapi.yaml).