|
|
@ -91,7 +91,8 @@ public class DefaultErrorAttributes implements ErrorAttributes {
|
|
|
|
HttpStatus errorStatus = determineHttpStatus(error, responseStatusAnnotation);
|
|
|
|
HttpStatus errorStatus = determineHttpStatus(error, responseStatusAnnotation);
|
|
|
|
errorAttributes.put("status", errorStatus.value());
|
|
|
|
errorAttributes.put("status", errorStatus.value());
|
|
|
|
errorAttributes.put("error", errorStatus.getReasonPhrase());
|
|
|
|
errorAttributes.put("error", errorStatus.getReasonPhrase());
|
|
|
|
errorAttributes.put("message", determineMessage(error, responseStatusAnnotation));
|
|
|
|
String message = determineMessage(error, responseStatusAnnotation);
|
|
|
|
|
|
|
|
errorAttributes.put("message", (message != null) ? message : "");
|
|
|
|
errorAttributes.put("requestId", request.exchange().getRequest().getId());
|
|
|
|
errorAttributes.put("requestId", request.exchange().getRequest().getId());
|
|
|
|
handleException(errorAttributes, determineException(error), includeStackTrace);
|
|
|
|
handleException(errorAttributes, determineException(error), includeStackTrace);
|
|
|
|
return errorAttributes;
|
|
|
|
return errorAttributes;
|
|
|
|