put error codes in a well