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

Source

const Int code

The HTTP status code.

@see web::WebRes.statusMsg

data

Source

const Obj? data

Custom user data

make

Source

new make(Int statusCode, Str? statusMsg := WebRes.statusMsg[((Obj?)statusCode)], Err? data := null)

makeErr

Source

const static ReProcessErr makeErr(Int statusCode, Str? statusMsg := WebRes.statusMsg[((Obj?)statusCode)], 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 HttpStatus instance.

throw HttpStatus.makeErr(404, "Page Not Found")
msg

Source

const Str msg

The HTTP status message.

@see web::WebRes.statusMsg

toStr

Source

virtual override Str toStr()

Returns ${code} - ${msg}