ServerError

constructor(statusCode: Int, message: String)(source)

Parameters

statusCode

HTTP status code (500–599), or -1 for network errors.

message

Error detail parsed from the response body, or the exception message for network errors.