Not found
| Type URI | https://doc.expresso-ts.com/docs/errors/not-found |
| HTTP status | 404 |
Nothing matches the request: either no route has that method and path, or the route exists and the resource it names does not.
When it is sent
No route matches. The framework sends this itself, with the code EXP2003. Outside production the document lists the closest routes in suggestions.
{
"type": "https://doc.expresso-ts.com/docs/errors/not-found",
"title": "Route Not Found",
"status": 404,
"detail": "Route 'GET /api/user' does not exist",
"instance": "/api/user",
"errorCode": "EXP2003",
"timestamp": "2026-12-02T20:15:04.512Z",
"suggestions": [
{ "method": "GET", "path": "/api/users", "similarity": 91, "reason": "Very similar route" }
]
}
A resource does not exist. A handler throws AppError.notFound("User", id) or new NotFoundError("User", id).
{
"type": "https://doc.expresso-ts.com/docs/errors/not-found",
"title": "Not Found",
"status": 404,
"detail": "User with id 42 not found",
"instance": "/api/users/42",
"details": { "resource": "User", "id": "42" }
}
What to do
With errorCode EXP2003, check the path, the method and the application's global prefix. Without it, the route is right and the resource named in detail does not exist.
See Error responses for the shape of the document and how to turn it on.