errno Table of Contents Overview Overview errno.errorcode[x] # name like 'EINVAL' os.strerror(code) # message like 'Invalid argument' https://docs.python.org/3.6/library/errno.html