code, never
on message: codes are stable, and messages are plain language that may
change. Keep a default case that shows message, so a code you do not know
yet degrades into a readable failure instead of a crash.
Error
A
429 and a 409 result_not_ready carry Retry-After, the seconds to
wait before you try again.
Which status codes can the API answer?
Which errors mean the image cannot be used?
Which errors are about the key or the credits?
Which errors mean a limit was reached?
Rate and spend limits has the numbers behind them.
Which errors come from jobs and their images?
Why did a fix job fail?
A job that ends infailed carries its own error, in the same shape.
Which error can any request return?
Which errors come from billing on makeseamless.com?
Three codes come only from the billing pages of makeseamless.com, which are used signed in and never with an API key. They are listed so the set is complete.When should I retry a request?
Retry only whenretryable is true. Wait as Retry-After says when it is
present, and otherwise start at 1 second and double the wait each time. A fix
that failed with service_unavailable or interrupted cost nothing, so a new
POST /v1/fix is safe. An answer with no JSON body, such as a 502, 503
or 504 from the network, can be retried the same way.