Better error codes

But I didn't find out any usage of that