Testing for catching HTTP errors.