SONAR-4136 Return proper response codes on unauthorized operation