getHttpStatusCode() method

Returns the HTTP status if it is set.

Syntax

public abstract int getHttpStatusCode ()

Parameters

Returns

The HTTP status code, if available.

Example 1

RequestStateElement element; int code =element.getHttpStatusCode();

Usage

If the HTTP status is not set, the default value is -1.