withStatus method

ApplicationException withStatus (
  1. int status
)
inherited

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