Hi,

this PR introduces a new convenience method ResponseEntity.internalServerError().

In our code we have this sort of construct once in a while:

        try {
            doSomething();
        } catch (SomethingNotFoundException ex) {
            return ResponseEntity.notFound().build();
        } catch (Exception ex) {
            return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();
        }
        return ResponseEntity.noContent().build();

That obviously works but I'm always looking for the convenience method to handle the 500 status code, which doesn't exist.

Let me know what you think.

Cheers, Christoph

Comment From: sbrannen

This has been merged into main.

Thanks