statusCode property

int? statusCode
getter/setter pair

The status code needs to be in the ranges 100, 299, 400, 599. Causing a redirect by specifying a 3xx code is not supported. If statusCode is set, then you need to set also headers and reasonPhrase. This value cannot be null.

NOTE: available on Android 21+. For Android < 21 it won't be used.

Implementation

int? statusCode;