return yield* post('/customHtmlTemplate', { headers, query, body }).pipe(
Effect.andThen((result) => result),
//Effect.catchTags({
// UnableToFindNextStep: () =>
// Effect.succeed({
// status: 401 as const,
// message: 'Authorization Failure, unable to find next step in journey',
// }),
// // InvalidUsernamePassword: () =>
// // Effect.succeed({
// // status: 401 as const,
// // message: 'Authorization Failure, Invalid username or password',
// // }),
//}),
);
return yield* post('/customHtmlTemplate', { headers, query, body }).pipe(
Effect.andThen((result) => result),
//Effect.catchTags({
// UnableToFindNextStep: () =>
// Effect.succeed({
// status: 401 as const,
// message: 'Authorization Failure, unable to find next step in journey',
// }),
// // InvalidUsernamePassword: () =>
// // Effect.succeed({
// // status: 401 as const,
// // message: 'Authorization Failure, Invalid username or password',
// // }),
//}),
);