RequestFailedException (@NotNull HttpResponse response) { try { return new YouTrackRequestFailedException(this, GSON.fromJson(TaskResponseUtil.getResponseContentAsReader(response), YouTrackErrorInfo.class)); } catch (IOException e) { return new RequestFailedException(e); } }