Added warning in logs in case environment property is not set
Added detailed message in case of unauthenticated access to the application
Changed HTTP status code from 401 to 403 (Forbidden)