Fix error handling in HttpProtocol