We use spring data rest annotating repositories with @RepositoryRestResource which provides CRUD apis by default. In spring boot 2.7.3 which we currently use, delete api returns 204 no content but in spring boot 3.1.8 upgrade, delete api response code changed to 200 ok. This is causing issues as the associated entities were not available after the session is closed but spring trying to return a GET 200 OK response.
I am looking for documentation on why this changed as 204 is has been default response code for delete and a colution to override the response code to 200 for any delete requests