API reference

HttpStatusException Class

Extends IOException
Modifiers: final
Exception that carries an HTTP status code. PakDownloader implementations should throw this (instead of a generic IOException) when the server returns a non-success HTTP status, so that PakDownloadManager can populate DownloadError.NetworkFailure.httpStatus.

Signature

class HttpStatusException(val statusCode: Int, message: String) : IOException

Constructors

HttpStatusException ( statusCode , message )
Signature
constructor(statusCode: Int, message: String)
Parameters
statusCode: Int  The HTTP response status code (e.g. 403, 404, 500).
message: String
Returns
HttpStatusException

Properties

statusCode : Int
[Get]
The HTTP response status code (e.g. 403, 404, 500).
Signature
val statusCode: Int