With status code 500 nginx will replace the error page with its own, and the users won't see the message.