Catch http errors when calling the validator