Is there a way to save the 500/404 etc errors to your database so you can check them to see if there are any bugs on the site?

I thought you could send an JS AJAX request from the 500.html page. e.g.

```
/errors/create/?message=error_message&ip=123&browser=ie9

```

But I'm not sure how to get that information when running in production mode? 

Any help greatly appreciated,

Alex