Safari show an error if the response status code is 204 but the body is not empty
It has been observed that returning a Response("", status=204)
on both staging and production results in Safari rejecting the server response and displaying an error.
This (probably) happens because returning a string violates the HTTP standard, as a 204 status is supposed to return an empty body. Therefore, the recommended solution is to replace the existing code with Response(status=204)
instead.