Turning string errors into constant ones (bug 818972)

DO NOT MERGE: it requires the webpay counterpart!

https://github.com/mozilla/webpay/pull/299