Get HTTP errors on the client side? #409
Replies: 2 comments
-
|
in your API route you can check the response status and headers before instantiating |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This discussion was automatically locked because it has not been updated in over 30 days. If you still have questions about this topic, please ask us at community.vercel.com/ai-sdk |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using an API key that is linked to an account that has an exceeded OpenAI quota for example, there is this error on the server:
I'd like to give the user feedback on the client if that ever happens. Is there a way to do this?
Beta Was this translation helpful? Give feedback.
All reactions