Goldman Sachs interview question

Error hanlding for REST API's