const classafBedSheet::HttpStatus
sys::Obj afBedSheet::HttpStatus
(Response Object) - Use to send a generic HTTP Status to the client.
HttpStatus(404, "Page Not Found")
- code
const Int codeThe HTTP status code.
- data
const Obj? dataCustom user data
- make
new make(Int statusCode, Str statusMsg := ..., Err? data := null)- makeErr
static ReProcessErr makeErr(Int statusCode, Str statusMsg := ..., Err? data := null)Throw to send a HTTP Status to the client. Use in exceptional cases where it may not be suitable / possible to return a
HttpStatusinstance.throw HttpStatus.makeErr(404, "Page Not Found")
- msg
const Str msgThe HTTP status message.
- toStr
virtual override Str toStr()Returns
${code} - ${msg}