Type guard to check if an SDK response has a client error status code (400, 401, 403, 404, 424, 426).
400
401
403
404
424
426
The SDK response to check
true if the response is a client error, false otherwise
true
false
const response = await someBridgeMethod();if (isClientError(response)) { // response narrowed to client error variants, `error` is available console.error(response.error);} Copy
const response = await someBridgeMethod();if (isClientError(response)) { // response narrowed to client error variants, `error` is available console.error(response.error);}
Type guard to check if an SDK response has a client error status code (
400,401,403,404,424,426).