HttpResponseWrapper::StatusCode Property
.NET Framework (current version)
Gets or sets the HTTP status code of the output that is returned to the client.
Assembly: System.Web (in System.Web.dll)
public: property int StatusCode { virtual int get() override; virtual void set(int value) override; }
Property Value
Type: System::Int32The status code of the HTTP output that is returned to the client. The default value is 200. For information about valid status codes, see HTTP Status Codes on the MSDN Web site.
| Exception | Condition |
|---|---|
| HttpException | StatusCode was set after the HTTP headers were sent. |
.NET Framework
Available since 3.5
Available since 3.5
Show: