-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Closed
Labels
status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by another
Description
- affects version: Spring Boot 1.5.2.RELEASE
- affects endpoint:
loggersactuator endpoint (POST method)
Sending a request like this:
{
"configuredLevel": "SOME_WRONG_LEVEL"
}towards /loggers/ROOT (e.g.) leads to a 500 (internal server error) response code instead of a 400 (bad request):
{
"timestamp": 1491232221140,
"status": 500,
"error": "Internal Server Error",
"exception": "java.lang.IllegalArgumentException",
"message": "No enum constant org.springframework.boot.logging.LogLevel.SOME_WRONG_LEVEL",
"path": "/loggers/ROOT"
}As a sidenote, since a successful POST request does not return any data, probably the 204 status code (no content) would be more adequate (imo).
Metadata
Metadata
Assignees
Labels
status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by another