withStatus method
Sets a HTTP status code which shall be returned by REST calls.
This method returns reference to this exception to implement Builder pattern to chain additional calls.
status
an HTTP error code. Returns this exception object
Implementation
ApplicationException withStatus(int status) {
this.status = status;
return this;
}