On the system documented by this man page, mkdir can return the following:
EACCES
EEXIST
EFAULT
ELOOP
ENAMETOOLONG
ENOENT
ENOMEM
ENOSPC
ENOTDIR
EPERM
EROFS
Those constants are provided by Errno and via %!. Don't rely on the stringification except for display purposes, because that depends on the system's locale.