Test that HTTP errors are passed properly