Announcement Announcement Module
No announcement yet.
MarshallingView and @ResponseStatus(HttpStatus.NO_CONTENT) Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • MarshallingView and @ResponseStatus(HttpStatus.NO_CONTENT)

    Working on a Restful application, I'm running into some surprising errors.
    After a POST, I would like to set the Location header and return a HttpStatus.NO_CONTENT.

    However, marshalling kicks in anyway and throws an exception, because there's no object to be marshalled in the model.

    Did I miss a configuration to prevent the marshalling kicking in, or do I need to create a marshallable status object to reflect the status of the post?

    In the latter case of course I would return a HttpStatus.CREATED.

    Any ideas?