Back to product page

StatusCode property


Holds numerical status code.

Type

An Integer value

Syntax

  • Basic
object.StatusCode
The StatusCode(object) syntax has these parts:
objectAn expression evaluating to an object of type HttpResponse.

Remarks

When response is received from the server, first received line will contain status for the request. It typically looks like this:
    HTTP/1.1 200 OK
or
    HTTP/1.1 404 Document not found
Since most clients will parse this status line and use numerical code ('200' or '404' in this case), you might find StatusCode property useful because it will contain exactly these values.

Platforms

Windows