Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


error

A human-readable string describing any system errors encountered by this UnityWebRequest object while handling HTTP requests or responses. The default value is null. (Read Only)
Read time 1 minuteLast updated 7 days ago

Definition

public string error { get; }

Remarks

If the UnityWebRequest has not encountered a system error, this property will return
null
. Examples of system errors include socket errors, errors resolving DNS entries, or the redirect limit being exceeded.
Note: If the UnityWebRequest is complete and the response isn't successful, the error property will be non-empty.
Additional Resources: UnityWebRequest.responseCode.