Extract remainder of controller error handlers to errors.py