Errors and pagination
The current API surface is small, but clients should still treat HTTP status and structured error code as part of the contract.Pagination
Both bounty list routes accept:limitoffset
limit defaults to 25 and is clamped to a maximum of 100. offset defaults to 0.
A request for limit=10000 does not force an enormous state read. The server clamps the request to its supported page size.
State unavailable
When the configured bounty state cannot be read, health and bounty list handlers return503 Service Unavailable with:
Route not found
Unknown read routes return404:
Method not allowed
Unsupported write methods return405:
Client error helper
Retry policy
Read-side503 responses can be retried with bounded exponential backoff. A 404 or 405 generally needs client or deployment correction, not repeated traffic.
Keep retries observable and capped. Infinite background polling can turn a state-layer outage into an unnecessary load problem.