A hostile work environment exists when and only when you are being subjected to either sexual harassment or illegal harassment/discrimination under Title VII and related laws ( ie race, religion, national origin, etc).