Encore now has great built-in support for API errors. Features include:
- Return errors with specific HTTP status codes
- Return structured errors, along with structured additional details
- Support for key-value metadata that is propagated between services
All of this is made possible using the encore.dev/beta/errs
package.
Read all about it in the Encore docs!