use codes names as errors codes, fixes #12

Because numeric errors codes are useless.