Add protocol version header to error response.
Add test for protocol version in error case.

RB=271265
R=gogenc,kparikh,si-dev
A=gogenc
PCL=5404