Mapping Errors to HTTP Status Codes in Effect Typescript

What is the preferred way of mapping errors on the edges of the application? Let's say I have some specific error types, and I want to map them to a specific HTTP status code. All the other errors should be logged and mapped to a generic error code (e.g. 500). I would love to use the HTTP server abstractions that Effect provides, but this isn't possible in my current use case.
CleanShot_2025-04-23_at_13.00.412x.png
Was this page helpful?