code: public static <T> DelegatingGenericResponse<T> create(T body, Response rawResponse) {
      if (rawResponse == null) {
        throw new NullPointerException("rawResponse:null");
      }
  
      ErrorBody errorBody = null;
      int code = rawResponse.getStatus();
      if (code < 200 || code >= 300) {
        errorBody = ErrorBody.fromResponse(rawResponse);
      }
  
      return new DelegatingGenericResponse<T>(body, errorBody, rawResponse);
    }
docs: Creates a new {@link DelegatingGenericResponse}.
  
  <p>If the rawResponse status code is in the range [200..300) the {@link ErrorBody} will be
  null. If the rawResponse status code is outside of the range [200..300) then a new
  {@link ErrorBody} will be created from the rawResponse and associated to this generic
  response.
  
  @param body the entity body of the response, may be {@code null} if no body is present
  @param rawResponse the raw JAX-RS response to delegate to