The error code management system tracks the error code of the last failed operation on a per-task basis. Error codes are updated by system functions only when a failure occurs. These codes can be retrieved using the osGetLastError function and manually updated via osSetLastError. The specific ERROR type is dedicated to variables intended to store error codes. For further details, please refer to the error codes management section of the Standard Library. A comprehensive error codes list is also available for reference.