UpstreamError
class UpstreamError(status: Int, val headers: HttpHeaders, body: ByteArray) : UpstreamFailure(source)
The server answered with a status the caller must handle. It keeps the response headers and body, copied in and read back as copies, and prints neither: message and toString() carry the status only.
Stable Core. Message: The server answered with status <status>.
Parameters
status
the response status, in 100..599.
headers
the response headers.
body
the response body; copied.
Throws
if status is outside 100..599.