Need for `andThen` in Request with `jsonBody`

Why do I need andThen after adding a jsonBody to my request? The rest of modifiers work just fine without it:
export const commentOnPhotoRequest = (photo_id: photo.ID, comment: string) =>
  HttpClient.request
    .post(`/api/photo/${photo_id}/comment`)
    .pipe(
      HttpClient.request.jsonBody({ comment }),
      Effect.andThen(HttpClient.client.fetchOk),
      HttpClient.response.void,
      Effect.retry(retryPolicy),
      Effect.withSpan("commentOnPhotoRequest"),
    );

I'm not asking for a type reason, I am trying to understand the logic behind it
Was this page helpful?