def view_500 ( request , url = None ) : res = render_to_response ( "500.html" , context_instance = RequestContext ( request ) ) res . status_code = 500 return res
python simplehttpserver 404 page
it returns a 500 http response
def view_500(request, url=None):
    """
    it returns a 500 http response
    """
    res = render_to_response("500.html", context_instance=RequestContext(request))
    res.status_code = 500
    return res