Added try catches for 400 and 503 exceptions