added 403 forbidden error handling