How do legal and ethical responsibilities of airport authorities differ when dealing with foreign nationals denied boarding?

A Nepali citizen was stopped at Delhi airport and authorities said they were not responsible. I want to understand the boundaries of responsibility for airport and immigration officials in such cases.