const classafButter::BadStatusErr
sys::Obj sys::Err afButter::BadStatusErr
Throw by ErrOnXxxMiddleware when a HTTP response returns a bad status code.
- body
const Str? bodyThe body of the failing HTTP response (if a string)
- make
new make(Str reqMethod, Uri reqUrl, Int statusCode, Str statusMsg, Str? body := null, Err? cause := null)- reqMethod
const Str reqMethodThe failing HTTP URL
- reqUrl
const Uri reqUrlThe failing HTTP URL
- statusCode
const Int statusCodeThe failing HTTP response status code
- statusMsg
const Str statusMsgThe failing HTTP response status message
- toStr
virtual override Str toStr()Pre-pends the list of available values to the stack trace.