Type guard to check if an SDK response has a 204 status code.
204
The SDK response to check
true if the response has 204 status code, false otherwise
true
false
const response = await someBridgeMethod();if (isNoContent(response)) { // response narrowed to status code `204` variant, `result` is not available console.log('No content');} Copy
const response = await someBridgeMethod();if (isNoContent(response)) { // response narrowed to status code `204` variant, `result` is not available console.log('No content');}
Type guard to check if an SDK response has a
204status code.