How do we generally create an error object of %Status?
Set status=$SYSTEM.Status.Error($$$GeneralError,"Something went wrong")
Now, like $$$GeneralError there are many more macro defined within %occErrors include file by Intersystem which we can use.