getHttpStatusCode() method

Returns the HTTP status if it was set.

Syntax

public abstract int getHttpStatusCode ()

Returns

the HTTP status code, if available.

Usage

If there was no http status set, the value is -1.