status property
HttpStatus
get
status
HttpStatus from Response. status.connectionError
is true
when statusCode is null. status.isUnauthorized
is true when
statusCode is equal 401
. status.isNotFound
is true when
statusCode is equal 404
. status.isServerError
is true when
statusCode is between 500
and 599
.
Implementation
HttpStatus get status => HttpStatus(statusCode);