+ case 400:
+ case 405: {
+ BufferedReader reader = new BufferedReader(new InputStreamReader(resp));
+ StringBuilder errorLines = new StringBuilder();
+ int count = 0;
+ while (count <= 5) {
+ String line = reader.readLine();
+ if (line == null)
+ break;
+ Logger.debug("network", line);
+
+ if (errorLines.length() != 0)
+ errorLines.append("\n");
+
+ errorLines.append(line);
+ count++;
+ }
+ throw new ApiNotSupportedException(errorLines.toString());
+ }