springfox: Support for rendering exception response statuses in response codes

    @RequestMapping
    public void someMethod() throws ResourceNotFoundException {...}

   @ExceptionHandler(ResourceNotFoundException)
   @ResponseStatus(HttpStatus.NOT_FOUND)
   void throw404() {...}

should generate 404 as a response status for declared exceptions

About this issue

  • Original URL
  • State: open
  • Created 10 years ago
  • Reactions: 18
  • Comments: 18 (6 by maintainers)

Most upvoted comments

This feature would be awesome. Should be also supported when declaring @ExceptionHandler in “@ControllerAdvice” annotated classes.