changes not_authorized to 401
Merge branch 'feature/pages_and_controllers' into feature/tests
fixes tests of not_authorized to deal with new status