Kory
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Kory
kory-ktor
/
io.kory.ktor.exception
/
KoryHttpException
/
HttpStatus
Http
Status
class
HttpStatus
(
val
status
:
Int
,
val
body
:
ByteArray
,
val
url
:
String
)
:
KoryHttpException
,
JsonDecodable
Non-2xx HTTP response.
Members
Members & Extensions
Constructors
Http
Status
Link copied to clipboard
constructor
(
status
:
Int
,
body
:
ByteArray
,
url
:
String
)
Properties
body
Link copied to clipboard
open
override
val
body
:
ByteArray
The raw response body.
cause
Link copied to clipboard
expect
open
val
cause
:
Throwable
?
message
Link copied to clipboard
expect
open
val
message
:
String
?
status
Link copied to clipboard
val
status
:
Int
The HTTP status code.
url
Link copied to clipboard
val
url
:
String
The request URL.
Functions
decode
Body
Link copied to clipboard
fun
decodeBody
(
)
:
String
decoded
Body
Link copied to clipboard
open
fun
decodedBody
(
)
:
String
decode
From
Json
Link copied to clipboard
inline
fun
<
T
>
JsonDecodable
.
decodeFromJson
(
)
:
T