ServletRequestBindingException should be wrapped as JSON response body [SPR-14982] #19548
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: declined
A suggestion or change that we don't feel we should currently apply
Uh oh!
There was an error while loading. Please reload this page.
Hendy Irawan opened SPR-14982 and commented
I have the following controller method:
The problem is, if the client doesn't send "Authorization" header, the error is only logged with DEBUG level, and client is given a plain 400 error without any response body:
Expected behavior:
Wrapped exception with message as JSON in response body.
I've tried sending "Accept: application/json" from client -- no effect.
or adding:
no effect too.
Affects: 4.3.4
Issue Links:
The text was updated successfully, but these errors were encountered: