Removed unused function
Added error message templates

Templates for HTTP errors 404 and 500