INVALID_REQUEST
There's a problem with the request.
HTTP status: 400
Why this happens
The request body or query failed schema validation.
How to recover
The error envelope's details carries field-level messages — fix and retry.
Branching on this code
TypeScript
import { ApiError } from "@firecase/sdk";
try {
await firecase.someCall();
} catch (e) {
if (e instanceof ApiError && e.code === "INVALID_REQUEST") {
// recover here
}
throw e;
}