Distinguish server and client errors
Distinguish server and client errors

A server error (HTTP 50x) is now thrown as a BadRequest exception, which
is semantically incorrect and makes it impossible to distinguish between
faulty requests and responses.

fungku/hubspot-php,RyanWinchester/hubspot-php