Skip to content

Customizing HttpApi Errors (For RFC 9457 Problem Details) #5367

@tobimori

Description

@tobimori

What is the problem this feature would solve?

As a developer, I want my Public API to have a standardized error format following RFC 9457, that does not use Effect's proprietary _tag for differentiation.

Currently, HttpApi doesn't support Schema.transform and HttpApiDecodeError is hardcoded for every API route (even if it doesn't have any kind of input. #4751)

What is the feature you are proposing to solve the problem?

What alternatives have you considered?

It's possible to solve this by creating some kind of middleware and OpenAPI transform, but this is really ugly and prone to break.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions