Skip to content

Commit 3048cfe

Browse files
committed
Polishing
1 parent d9ca263 commit 3048cfe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ private String getErrorMessage(int rawStatusCode, String statusText, @Nullable b
203203

204204
/**
205205
* Handle the error based on the resolved status code.
206-
*
207206
* <p>The default implementation delegates to
208207
* {@link HttpClientErrorException#create} for errors in the 4xx range, to
209208
* {@link HttpServerErrorException#create} for errors in the 5xx range,
@@ -212,7 +211,9 @@ private String getErrorMessage(int rawStatusCode, String statusText, @Nullable b
212211
* @see HttpClientErrorException#create
213212
* @see HttpServerErrorException#create
214213
*/
215-
protected void handleError(ClientHttpResponse response, HttpStatusCode statusCode, @Nullable URI url, @Nullable HttpMethod method) throws IOException {
214+
protected void handleError(ClientHttpResponse response, HttpStatusCode statusCode,
215+
@Nullable URI url, @Nullable HttpMethod method) throws IOException {
216+
216217
String statusText = response.getStatusText();
217218
HttpHeaders headers = response.getHeaders();
218219
byte[] body = getResponseBody(response);

0 commit comments

Comments
 (0)