Duplicate error codes merged
Errors that meant the same thing under different codes now return one code each. HTTP statuses are unchanged.
Errors that meant the same thing under different codes now return one code each. HTTP statuses are unchanged.
Some errors returned different codes on different endpoints for the same condition. Each condition now has one code. HTTP statuses and messages are unchanged.
| Retired code | Now returned as |
|---|---|
validation.bad_cursor | validation.invalid_cursor |
validation.idempotency_key_reused, idempotency.request_mismatch | idempotency.conflict |
validation.idempotency_key_required | idempotency.key_required |
request.too_large, uploads.too_large | validation.payload_too_large |
uploads.unsupported_media | validation.unsupported_media_type |
validation.agent_not_found, dialer.agent_not_found, numbers.unknown_agent | agents.not_found |
request.invalid, validation.invalid | validation.bad_request |
auth.unauthenticated, auth.unauthorised | auth.session_invalid |
waitlist.rate_limited | rate_limit.exceeded |
ratelimit.concurrent_cap_reached | rate_limit.concurrent_cap_reached |
validation.invalid_amount | wallet.invalid_amount |
member.last_owner | accounts.last_owner |
number.not_found | numbers.not_found |
number_series.not_found | series.not_found |
sip_credential.not_found | numbers.sip_credentials.not_found |
If your code matches on a retired code, change it to the code in the right-hand column. Code that branches on the HTTP status needs no change.