Code (HttpResponse function)

From m204wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Check HTTP status code of most recent request (HttpResponse class)

The Code method lets you examine the HTTP status code value in the status line of the result of the most recent HTTP request. Code returns only the code portion of the status line (for example, "200").

Syntax

%string = httpResponse:Code

Syntax terms

%string A string, longstring, or numeric variable for the assignment of the current Code value of httpResponse.
httpResponse A reference to an HttpResponse object that was returned by a Get, Post, or Send methods of an HttpRequest object.

See also