Turning string errors into constant ones (bug 818972)

DO NOT MERGE: it requires the webpay counterpart!
Merge pull request #135 from davidbgk/818972-error-constants

Turning string errors into constant ones (bug 818972)