Can you explain the nature of these outages a little more?
If the application server is running normally, but the database isn't responding to requests, then the server would throw an error. If the application server (or web server) weren't responding, then the request would time out and the browser would throw an error.