Response.isOk

Check if the status code means a success.

This function is defined for convenience, it is equivalent to testing if the status code is < 400.

class Response
bool
isOk
const
(
)

Return Value

Type: bool

true if the status is a success, false if it is a failure.

Meta