Concept Flow - Exception handling in routes
Request comes in
Route function starts
Try block executes
No error
Return normal
Send response
End
When a request hits a route, the code inside a try block runs. If an error happens, the except block catches it and returns an error response.