Polishing

This commit is contained in:
Juergen Hoeller 2024-05-06 20:16:07 +02:00
parent d9ca263065
commit 3048cfe9d9
1 changed files with 3 additions and 2 deletions

View File

@ -203,7 +203,6 @@ public class DefaultResponseErrorHandler implements ResponseErrorHandler {
/**
* Handle the error based on the resolved status code.
*
* <p>The default implementation delegates to
* {@link HttpClientErrorException#create} for errors in the 4xx range, to
* {@link HttpServerErrorException#create} for errors in the 5xx range,
@ -212,7 +211,9 @@ public class DefaultResponseErrorHandler implements ResponseErrorHandler {
* @see HttpClientErrorException#create
* @see HttpServerErrorException#create
*/
protected void handleError(ClientHttpResponse response, HttpStatusCode statusCode, @Nullable URI url, @Nullable HttpMethod method) throws IOException {
protected void handleError(ClientHttpResponse response, HttpStatusCode statusCode,
@Nullable URI url, @Nullable HttpMethod method) throws IOException {
String statusText = response.getStatusText();
HttpHeaders headers = response.getHeaders();
byte[] body = getResponseBody(response);