add new error codes; make handler not barf on unknown error codes