websrv_lib: handle general failures with http 500 status
websrv_lib: handle general failures with http 500 status

If some http request fails with an unhandled exception, it is better
to send back the 500 error and close the connection, not leave the client
waiting for a response.

xrg/openerp-server,xrg/openerp-server