# Error handling

Catch and respond to declines, invalid data, network problems, and more.

## Index

This article has multiple variants. Fetch one of the following URLs to view specific content for your use case:

- [Ruby](https://docs.stripe.com/error-handling.md?lang=ruby)
- [Python](https://docs.stripe.com/error-handling.md?lang=python)
- [PHP](https://docs.stripe.com/error-handling.md?lang=php)
- [Java](https://docs.stripe.com/error-handling.md?lang=java)
- [Node.js](https://docs.stripe.com/error-handling.md?lang=node)
- [Go](https://docs.stripe.com/error-handling.md?lang=go)
- [.NET](https://docs.stripe.com/error-handling.md?lang=dotnet)
