Re: Returning a 503 response instead of a 500 response

2011-06-23 Thread Steven L Smith
5-389-2085 | ssmit...@naz.edu | KC2YTC http://www.naz.edu/pub/~ssmith46 - Original Message - From: "Tom Evans" To: django-users@googlegroups.com Sent: Thursday, June 23, 2011 9:28:15 AM GMT -05:00 US/Canada Eastern Subject: Re: Returning a 503

Re: Returning a 503 response instead of a 500 response

2011-06-23 Thread Tom Evans
On Thu, Jun 23, 2011 at 2:19 PM, Steven L Smith wrote: > Some of our apps have to talk to databases outside of our control, and their > operators don't have the same uptime standards that we do... > > What can I do to make Django return a "503 Service Unavailable" instead of a > "500 Internal Se

Returning a 503 response instead of a 500 response

2011-06-23 Thread Steven L Smith
Some of our apps have to talk to databases outside of our control, and their operators don't have the same uptime standards that we do... What can I do to make Django return a "503 Service Unavailable" instead of a "500 Internal Server Error", when it encounters a DatabaseError or ProgrammingEr