# Source: https://swr.vercel.app/docs/error-handling

# Source: https://swr.vercel.app/examples/error-handling

# Error Handling

## Navigation Links
- [Documentation](/en/docs)
- [Blog](/en/blog)
- [Examples](/en/examples)

## Main Content
### Error Handling

<iframe src="https://codesandbox.io/embed/swr-states-7njdkp?codemirror=1&fontsize=14&theme=dark&autoresize=1&hidenavigation=1" style="width:100%;height:100%;border:0;overflow:hidden;background:rgb(21, 21, 21)" title="SWR - Error Handling" allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking" sandbox="allow-autoplay allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"></iframe>

## Footer
- Copyright Vercel 2025. All rights reserved.

- [RSS Feed](/rss.xml)
- [GitHub](https://github.com/vercel/swr)