mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-02 00:18:17 +00:00
The omni-gen enqueue (and inlined bg-removal fetch) throw on non-2xx and the JSON body isn't surfaced, so parse the HTTP status from the error message. On 402 Payment Required, open the shared insufficient-credits modal instead of a raw error toast — matching the create-image and create-video generate handlers.