code: @Override
      public Object aroundReadFrom(ReaderInterceptorContext context) throws IOException, WebApplicationException {
          try {
              return context.proceed();
          } catch (Exception ex) {
              log.error("request failed: " + ex.getCause().getMessage(), ex.getCause());
              if (ex.getCause() instanceof EOFException) {
                  WebApplicationException exception =
                      new WebApplicationException(Response.status(HttpStatus.SC_BAD_REQUEST)
                                                          .entity(new ResponseDetails("JSON body expected."))
                                                          .type(MediaType.APPLICATION_JSON)
                                                          .build());
                  throw exception;
              } else {
                  throw ex;
              }
          }
      }
docs: /* (non-Javadoc)
  @see javax.ws.rs.ext.ReaderInterceptor#aroundReadFrom(javax.ws.rs.ext.ReaderInterceptorContext)