Minimum version: Midgard 1.4 (Bifrost)
Returns the error, if any, generated by the latest midgard function/method called. The return value can be any of these:
Error codes
No error
Unspecified error.
Access denied
Resource link crosses sitegroup borders
The variable was not properly initialized as an Midgard object.
Operation requested on a non-existant resource.
Out of memory
Invalid name for resource
A resource by the given name already exists
The operation cannot be completed since it would cause orphaned resources.
Date range error
Internal error
Returns the latest errorcode.