Fix bug when error messages render response unresponsive
Provide default http status message on errors
Implement function to check authentication