HttpApiBuilder.group to Effect.catchAllCause which then handled the defect. However, I'd ideally like to accomplish this at the top level of my api (so I don't run the risk of forgetting to do this with new handlers as the API grows in size. app.pipe(Effect.catchAllCause(... within a middleware effect, it's too late to modify the response as it was already sent back to the client.