code: public static SurgeConfirmationError parseSurgeConfirmationError(Gson gson, RetrofitError retrofitError) throws IOException {
          String body = IOUtils.toString(retrofitError.getResponse().getBody().in(), "UTF-8");
          IOUtils.closeQuietly(retrofitError.getResponse().getBody().in());
          return gson.fromJson(body, SurgeConfirmationError.class);
      }
docs: Parses surge confirmation retrofit error (409) into a model object
  @param gson
  @param retrofitError
  @return
  @throws IOException