Fix COUCHB-2171 noAccess page mixes 401 and 403 responses

[EDIT: Real pull request now]

This is not  a real "pull request", more of a "code review request".

Also, I haven't been able to figure out testing, and I wonder if someone could walk me through writing tests.