Add getters to HttpError, to use it in tests.

Change-Id: I1165063ebdbcc29ae26998bd6ab74782dc0ecdc5
Merge "Add getters to HttpError, to use it in tests."