[shared] simple route error handling