There are many different error codes depending on the gateway you are using. The following is a list of resources that detail what the error codes mean, is possible:
Braintree error responses here
Beanstream error responses in this document
PayPal WPP error codes here
If there's one you've found which isn't listed, please just add it to the comments below.