Represents a failed API operation.
The error that occurred.
Optional data, if available despite the error.
Checks if the resource represents an error.
Checks if the resource represents a successful operation.