allow status to be passed to errors