Altered the return of failed authentication from a http status code to the same response as having insufficient permissions