added template for 502 error with somewhat helpful error message