openBGremover / Docs

Errors and retries

Handle invalid inputs, exhausted credits, and uncertain request outcomes.

Error responses

Errors return JSON with an error message and, when available, an error_code.

{ "error": "Invalid request", "error_code": "INVALID_REQUEST" }

Use the status and machine-readable code for handling. Show the message when it helps the caller correct an input.

StatusMeaningNext action
400Invalid input or optionsFix the request
401Missing or invalid credentialsCheck the API key or session
403Insufficient key scopeUse an owner key or session
402Credits exhaustedCheck your balance
413Body too largeReduce input size
429Public demo rate limitWait before trying the demo again
502Worker or delivery failureInspect activity before retrying
503Operation is not configuredCheck deployment configuration

Credits on failure

The API validates authentication, wire format, byte limits, and options before reserving a credit. Processing failures refund the reservation and record failed usage. A successful compression that returns the original is charged.

Network interruptions

A timeout or disconnected client does not prove processing stopped. Requests have no idempotency key or durable reservation ledger. Do not blindly retry paid processing after an unknown outcome.

Check usage and activity first. Activity records are useful evidence but cannot guarantee deduplication or prove that an in-flight request has stopped. The source clients send processing requests once and do not retry automatically.

On this page