Skip to main content
Version: 4.x

EXP2003: Route not found

Sent in an error response, as its errorCode.

No route matches the request's method and path. The request is answered with 404 and the problem type not-found.

Fix​

Check, in this order:

  1. The path, including the application's global prefix (for example /api).
  2. The method: a route registered for POST does not answer GET.
  3. That the controller is listed in a module the application loads.

Outside production the response lists the closest routes in suggestions. expressots inspect prints every route the source declares; see inspect.

All codes are listed under Error responses.