Use the response codes
Map invalid input, expired access and rate or budget limits to separate actions. Identify the user-facing field or step when their next action can resolve it.
Sanitize client diagnostics
Keep the actual bearer key and media locations out of console logs or trace exports. Error banners can identify the source by a safe project label.
Verify with a fake failure
Send your UI a synthetic error containing an invented URL and test the boundary. Ensure the user sees a practical correction while the URL is absent.
Pass condition
The actual next action and request ID are visible, and no private media reference reaches unauthorized recipients.