Ef.mapError((e) => ({
'ParseError': new Response('Bad Request', { status: 400 }),
'OrganizationNotFound': new Response('Not Found', { status: 404 }),
'DatabaseError': new Response('Internal Server Error', { status: 500 }),
}[e._tag])),
Ef.match({
onSuccess: (response) => response,
onFailure: (response) => response,
}),
Ef.mapError((e) => ({
'ParseError': new Response('Bad Request', { status: 400 }),
'OrganizationNotFound': new Response('Not Found', { status: 404 }),
'DatabaseError': new Response('Internal Server Error', { status: 500 }),
}[e._tag])),
Ef.match({
onSuccess: (response) => response,
onFailure: (response) => response,
}),