Move the luxi error handling into errors.py