code: protected Response error(@Nullable String input, Exception e) {
          LOGGER.debug("Invalid input received: {}", input);
          String errorMessage = errorMessage(e);
          if (errorMessage.contains("%s")) {
              errorMessage = String.format(errorMessage, parameterName);
          }
          return Response.status(getErrorStatus())
                         .entity(new ErrorMessage(getErrorStatus().getStatusCode(),
                                 errorMessage))
                         .type(mediaType())
                         .build();
      }
docs: Given a string representation which was unable to be parsed and the exception thrown, produce
  a {@link Response} to be sent to the client.
  
  By default, generates a {@code 400 Bad Request} with a plain text entity generated by
  {@link #errorMessage(Exception)}.
  
  @param input the raw input value
  @param e the exception thrown while parsing {@code input}
  @return the {@link Response} to be sent to the client