add Error class with new error codes