Better error codes

In all the expect regexp, not only this one