class Router {

  @ExceptionHandler(value = { HttpException.class })
  protected ResponseEntity handleHttpException(final HttpException ex, final WebRequest request) {
    logger.warn("Unexpected exception:", ex);
    return ResponseEntity.status(ex.getStatusCode()).body(handleThrowable(ex, request));
  }

}