code: static AtsdServerException fromResponse(final Response response) {
          final int status = response.getStatus();
          try {
              final ServerError serverError = response.readEntity(ServerError.class);
              final String message = AtsdServerMessageFactory.from(serverError);
              return new AtsdServerException(message, status);
          } catch (ProcessingException e) {
              throw new IllegalArgumentException("Failed to extract server error", e);
          }
      }
docs: Generate {@link AtsdServerException} from Http Response.
  
  @param response {@link Response} class from jersey.
  @return AtsdServerException instance with extracted message from response.