Localized redirection to error pages

- Added support for redirecting users to localized error pages, based on
the language they got error in.