Add the errorCode to the prototype