Added NotAuthorized function, which gives a 403 response, and the respec...

...tive tests. Also added additional logging for route/response code testing