Oh, the British Raj treated the Indian poor and lower classes like untouchables, with a good dose of racism mixed in.
I've seen images barring Indians from establishments; this report mentions "No dogs or Indians allowed"
https://www.smh.com.au/world/no-dogs-or-indians-colonial-bri...You still see casteism and classism in Indian today, although it may be more subtle.