SetErrorStatus

For internal use.