524. Goods carried as bailee, according to terms of agreement between carrier and shipper.

A shipowner carries goods as a bailee for the shipper of them1. In so far as there is a contract between him and the goods owner, whether contained in a charterparty, bill of lading, sea waybill or other document, the terms of that contract will govern the relation between him and the cargo owner. Where the other party to the contract is not the owner but another carrier, for instance where carriage is subcontracted, then his duties to the owner of the goods are governed by the terms of his contract with the shipper with whom he contracts