https://issues.apache.org/jira/browse/AMQ-5096

Return proper error code for unathorized access.