Back in 0.3.X, we used to have response-code specific error classes such as UnauthorizedError.
With v1, these are gone, seemingly replaced by the generic APIError. This already makes it more cumbersome to check for specific error responses.
However, APIError seems to not even be in use? It is defined in lib/linked_in/errors.rb but raised nowhere. Instead, error responses from the server result in Faraday::ClientErrors.
Back in 0.3.X, we used to have response-code specific error classes such as UnauthorizedError.
With v1, these are gone, seemingly replaced by the generic APIError. This already makes it more cumbersome to check for specific error responses.
However, APIError seems to not even be in use? It is defined in lib/linked_in/errors.rb but raised nowhere. Instead, error responses from the server result in Faraday::ClientErrors.