Function sharp_pencil::helpers::abort
source · [−]pub fn abort(code: u16) -> PencilResult
Expand description
One helper function that can be used to return HTTP Error inside a view function.
pub fn abort(code: u16) -> PencilResult
One helper function that can be used to return HTTP Error inside a view function.