Skip to content

Do not create an Error for the default 404 route #1823

@mcollina

Description

@mcollina

🚀 Feature Proposal

Creating an Error is costly, and we should be able to avoid that in

reply.code(404).send(new Error('Not Found'))
. Moreover, it complicates debugging (see #1822 for details).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions