Skip to content
Community forum

Branching on error_code in client retry logic

SolvedSupero SupportSupero team asked

Common question, written up by the Supero team.

We want retries keyed on error_code, but some failures don't seem to have one.

Link

1 answer

Accepted answer
Accepted answer

Branch on error_code when it's present and fall back to the HTTP status when it isn't. Creates always carry one (for example ALREADY_EXISTS, VALIDATION_FAILED, PERMISSION_DENIED); most update and delete failures don't. The errors page lists every code. Retry 429 (respect Retry-After) and 503. Don't retry 402: that's a plan limit.

Supero Platform teamSupero team answered
Link

Your answer

Branching on error_code in client retry logic | Supero Community