HttpStatusException

An exception that can be thrown to indicate that the current request should immediately respond with a specified status, short-circuiting any other handler logic. Note that it is still the responsibility of the server's exception handler to honor this exception, but by default, the BasicServerExceptionHandler does honor it.

class HttpStatusException : Exception {
immutable
HttpStatus status;
immutable
string message;
}