Use current site to construct redirect URI
Add templates for http error codes