Can any on please give me example how error and exceptions are handled in phalcon framework
you can do it easily using dispatcher
https://docs.phalcon.io/en/latest/reference/dispatching.html#handling-not-found-exceptions