error is null by default.

Conforms to the behaviour of the HTTP client.
Handle and store protobuffs errors.