Returns the HTTP status if it is set.
public int getHttpStatusCode ()
If the HTTP status is not set, the default value is -1.
RequestStateElement element; int code =element.getHttpStatusCode();