You are responsible for checking and, if necessary, getting the visas and are advised to do so well before your planned trip. Nearly all airlines will refuse to let you board their planes if you lack a required visa, and none of them will refund your fare since they consider it your mistake.