docs: @Override
      public Response toResponse(JqmClientException exception)
      {
          // String type = headers.getMediaType() == null ? MediaType.APPLICATION_JSON : headers.getMediaType().getType();
          ErrorDto d = new ErrorDto(exception.getMessage(), 9, exception, Status.INTERNAL_SERVER_ERROR);
          return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(d).type(MediaType.APPLICATION_JSON).build();
      }