statusCode property

int? statusCode
final

HTTP status code associated with the error, when applicable.

Set when the error originates from an HTTP response, e.g. 404 when a URL is no longer available. Null for non-HTTP errors (configuration issues, network failures, etc.).

Implementation

final int? statusCode;