Retrieve response data with a 409 status using client.fetchOk

Hey everyone! 👋 Is there a simple way to retrieve response data with a 409 status? I'm currently using client.fetchOk, and I want to continue using it, but I also want to handle/recover that error. Here's some pseudo-code:

client.fetchOk.pipe(
  request.get('/api'), 
  response.json, 
  Effect.catchTag('ResponseError', (error) => {
    console.log(error.response); // is `body` available here?
    return …
  }),
)
Was this page helpful?