Announcement Announcement Module
Collapse
No announcement yet.
Changing http statusCode after returning ResponseEntity from controller Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Changing http statusCode after returning ResponseEntity from controller

    Hello,

    Is there a way to change the response code after returning a response entity from the controller? I have tried doing this with the http response in an interceptor, but it has not effect.

    My goal is to be able to change the response code after code is executed in a controller. For example, it is common in REST to want to suppress all non 200 error codes. Any advice on how/where to do this?

    Thanks,

    Joe

  • #2
    Bump... Has anyone done this? Is there a point at which I can intercept and change the status code before the response is written?

    Joe

    Comment

    Working...
    X