Better error handling for routes not found