Improve API error handling in JS Client (#10890)
* Improve API error handling in JS Client
* add changeset
* Skip broken test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>