Problems

Reads problems as a Wow server writes them: what a retry may do is the problem's retry member, which every problem carries (the error catalog's for its code when it lacks one), its wait the Retry-After it came with, else the catalog's. A body that is no Wow problem (a proxy's, a gateway's) may be retried with the same request id when it is a 503 or a 429, which nothing behind it handled, or a 502 or a 504: the gateway does not say whether the node behind it took the request and committed it (a 502's node may have failed mid-answer, a 504's may still be running it), and the same request id is safe either way, a command that did commit answered as the duplicate it is (#6810). Any other status of such a body is RetryAdvice.NONE.

Functions

Link copied to clipboard
fun read(status: Int, headers: HttpHeaders, body: ByteArray): PeerProblem

The problem of a response of status with headers and body, whatever its body holds.