core/error: Add missing error codes

Related to previous commit with attribute layout objects