Skip to content

Allow defining error responses #1930

@jsumners

Description

@jsumners

🚀 Feature Proposal

As discussed in #1888 (comment) we have several points in the framework where it is assumed a response will be content-type: application/json. However, people use Fastify for more than just that one content type. So it would be appropriate to allow them to define how these responses should be constructed and sent.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions