added 502 and 503 error routes