picqer / moneybird-php-client

PHP Client for Moneybird V2
MIT License
82 stars 77 forks source link

Set API status as error code #55

Closed roelvanduijnhoven closed 8 years ago

roelvanduijnhoven commented 8 years ago

When a 429 error is spawned by MoneyBird the Picqer\Financials\Moneybird\Exceptions\ApiException exception is thrown. I would except the $code property to be 429. However it is empty! Therefore you need to parse the $message yourself.

Do you agree? If so I can implement it this way.

stephangroen commented 8 years ago

I agree! Sorry for the late response.

stephangroen commented 8 years ago

Seems already done in #54