Update BaseApiClient.php

Exception code added.