applied requested modifications to 403 handling

I fixed indentation, changed the string literal issue, removed/added comments, and changed the code to reuse the old variable rather than a new one.