-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Closed
Description
I have an exception like this
@ResponseStatus(value = HttpStatus.BAD_REQUEST)
public class RequestValidationException extends RuntimeException {
private static final long serialVersionUID = -3157465183026609933L;
public RequestValidationException() {
super();
}
public RequestValidationException(String message) {
super(message);
}
}
And then ,I throw the exception in a controller
throw new RequestValidationException("some message");
if I use tomcat containner ,the response is like this
{
"timestamp": "2020-07-17T09:22:41.845+0000",
"status": 400,
"error": "Bad Request",
"message": "some message",
"path": "/oauth/token"
}
but if I use undertow or jetty containner ,the response is like this
{
"timestamp": "2020-07-17T09:22:41.845+0000",
"status": 400,
"error": "Bad Request",
"message": "Bad Request",
"path": "/oauth/token"
}
there is different with message field.
I think it a Bug.
Metadata
Metadata
Assignees
Labels
type: enhancementA general enhancementA general enhancement