Allow 'status' and 'error' to be excluded from error response
Update `ErrorAttributeOptions` to allow the `status` and `error`
fields to be excluded from the response without throwing a
NullPointerException.
Fixes gh-30011
@ -90,6 +91,8 @@ public class DefaultErrorWebExceptionHandler extends AbstractErrorWebExceptionHa
@@ -90,6 +91,8 @@ public class DefaultErrorWebExceptionHandler extends AbstractErrorWebExceptionHa
@ -117,13 +120,13 @@ public class DefaultErrorWebExceptionHandler extends AbstractErrorWebExceptionHa
@@ -117,13 +120,13 @@ public class DefaultErrorWebExceptionHandler extends AbstractErrorWebExceptionHa
@ -144,10 +147,15 @@ public class DefaultErrorWebExceptionHandler extends AbstractErrorWebExceptionHa
@@ -144,10 +147,15 @@ public class DefaultErrorWebExceptionHandler extends AbstractErrorWebExceptionHa
@ -215,7 +223,9 @@ public class DefaultErrorWebExceptionHandler extends AbstractErrorWebExceptionHa
@@ -215,7 +223,9 @@ public class DefaultErrorWebExceptionHandler extends AbstractErrorWebExceptionHa
@ -70,18 +70,7 @@ public class DefaultErrorAttributes implements ErrorAttributes {
@@ -70,18 +70,7 @@ public class DefaultErrorAttributes implements ErrorAttributes {
@ -91,18 +91,7 @@ public class DefaultErrorAttributes implements ErrorAttributes, HandlerException
@@ -91,18 +91,7 @@ public class DefaultErrorAttributes implements ErrorAttributes, HandlerException