Non200Exception
class Non200Exception @JvmOverloads constructor(val statusCode: Int, val httpResponse: HttpResponse? = null) : NetworkException
Indicates that the response was a non-2XX HTTP status code. Whether the request can be retried is determined by the statusCode.
Parameters
statusCode
The HTTP status code of the network response
httpResponse
The response that was received, whose HttpResponse.body carries any error body returned by the server, if it could be read