Restructure: Setup custom error functions in frontend.

Explicitly declare url_prefix of frontend_misc.