Error codes vary greatly between gateways or underlying processors. While there is not one exhaustive resource for possible failures, our Response Codes page is one resource for possible errors generated by Spreedly, and our sample apps (source code) also demonstrates how one might handle payment errors.
If you're seeing messages like "gateway_processing_failed" or "gateway_processing_result_unknown" it might be time to talk to the gateway.