withStatus method

ApplicationException withStatus (int status)

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