code: protected Response onError(String param, Throwable e) {
          return Response.status(Status.BAD_REQUEST)
                  .entity(getErrorMessage(param, e)).build();
      }
docs: Generates an HTTP 400 (Bad Request)
  
  @param param the original parameter
  @param e the original error
  @return HTTP 400 Bad Request