[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eHttpResponse\u003c/code\u003e class represents an HTTP response within the \u003ccode\u003eGoogle.Rpc\u003c/code\u003e namespace and is part of the \u003ccode\u003eGoogle.Api.CommonProtos.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eHttpResponse\u003c/code\u003e include \u003ccode\u003eBody\u003c/code\u003e (the response body), \u003ccode\u003eHeaders\u003c/code\u003e (response headers), \u003ccode\u003eReason\u003c/code\u003e (reason phrase), and \u003ccode\u003eStatus\u003c/code\u003e (status code).\u003c/p\u003e\n"],["\u003cp\u003eThe class offers methods for managing the message, such as \u003ccode\u003eCalculateSize\u003c/code\u003e, \u003ccode\u003eClone\u003c/code\u003e, \u003ccode\u003eEquals\u003c/code\u003e, \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eMergeFrom\u003c/code\u003e, \u003ccode\u003eToString\u003c/code\u003e, and \u003ccode\u003eWriteTo\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt has constructors available to create an instance of HttpResponse, one without parameters and the other one taking another HttpResponse as a parameter to initialize it.\u003c/p\u003e\n"]]],[],null,["# Class HttpResponse (2.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.0 (latest)](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.HttpResponse)\n- [2.15.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.15.0/Google.Rpc.HttpResponse)\n- [2.10.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.10.0/Google.Rpc.HttpResponse)\n- [2.2.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.2.0/Google.Rpc.HttpResponse) \n\n public sealed class HttpResponse : IMessage\u003cHttpResponse\u003e, IEquatable\u003cHttpResponse\u003e, IDeepCloneable\u003cHttpResponse\u003e, IBufferMessage, IMessage\n\nRepresents an HTTP response. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e HttpResponse \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[HttpResponse](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.HttpResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[HttpResponse](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.HttpResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[HttpResponse](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.HttpResponse), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)\n\nNamespace\n---------\n\n[Google.Rpc](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc)\n\nAssembly\n--------\n\nGoogle.Api.CommonProtos.dll\n\nConstructors\n------------\n\n### HttpResponse()\n\n public HttpResponse()\n\n### HttpResponse(HttpResponse)\n\n public HttpResponse(HttpResponse other)\n\nFields\n------\n\n### BodyFieldNumber\n\n public const int BodyFieldNumber = 4\n\nField number for the \"body\" field.\n\n### HeadersFieldNumber\n\n public const int HeadersFieldNumber = 3\n\nField number for the \"headers\" field.\n\n### ReasonFieldNumber\n\n public const int ReasonFieldNumber = 2\n\nField number for the \"reason\" field.\n\n### StatusFieldNumber\n\n public const int StatusFieldNumber = 1\n\nField number for the \"status\" field.\n\nProperties\n----------\n\n### Body\n\n public ByteString Body { get; set; }\n\nThe HTTP response body. If the body is not expected, it should be empty.\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### Headers\n\n public RepeatedField\u003cHttpHeader\u003e Headers { get; }\n\nThe HTTP response headers. The ordering of the headers is significant.\nMultiple headers with the same key may present for the response.\n\n### Parser\n\n public static MessageParser\u003cHttpResponse\u003e Parser { get; }\n\n### Reason\n\n public string Reason { get; set; }\n\nThe HTTP reason phrase, such as \"OK\" or \"Not Found\".\n\n### Status\n\n public int Status { get; set; }\n\nThe HTTP status code, such as 200 or 404.\n\nMethods\n-------\n\n### CalculateSize()\n\n public int CalculateSize()\n\n### Clone()\n\n public HttpResponse Clone()\n\n### Equals(HttpResponse)\n\n public bool Equals(HttpResponse other)\n\n### Equals(object)\n\n public override bool Equals(object other)\n\n**Overrides** \n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object))\n\n### GetHashCode()\n\n public override int GetHashCode()\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### MergeFrom(CodedInputStream)\n\n public void MergeFrom(CodedInputStream input)\n\n### MergeFrom(HttpResponse)\n\n public void MergeFrom(HttpResponse other)\n\n### ToString()\n\n public override string ToString()\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\n### WriteTo(CodedOutputStream)\n\n public void WriteTo(CodedOutputStream output)"]]