According to the HTTP1.1 specs, the Status-Code and Reason-Phrase are
related, but the former is intended for "use by automata", the latter for
"the human user".  I'd say that HttpWebResponse.StatusCode, an enumeration,
maps to the Status-Code integer, while HttpWebResponse.StatusDescription is
simply the Reason-Phrase string intended for human consumption.

So to answer your question, yes it should, and it does so in the form of an
enum.  You can get the underlying value by casting to int, eg:

int status = (int)HttpStatusCode.OK;


Jim

> -----Original Message-----
> From: Serdar Kilic [mailto:[EMAIL PROTECTED]]
> Sent: 22 April 2002 14:59
> To: [EMAIL PROTECTED]
> Subject: [DOTNET] HttpWebResponse.StatusCode
>
>
> Hi,
>  Should not the HttpWebResponse.StatusCode return the code (e.g. 200)
>  and leave the description (e.g. OK) to
>  HttpWebResponse.StatusDescription ?
>
> --
> Regards,
>  Serdar | skilic.com
>
> You can read messages from the DOTNET archive, unsubscribe
> from DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.
>

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to