Breaking change, removes AuthError exception from Search API
replacing AuthError with AuthenticationError (invalid API key) and AuthorizationError (denied access to a search feature). Both AuthenticationError and AuthorizationError inherits from AuthError to avoid breaking the API.
Should we update LiveFeed once we're at it (also breaking)? LiveFeed don't have authorization error (no request options that can be stopped), so it would be a rename AuthError -> AuthenticationError.
Breaking change, removes AuthError exception from Search APIreplacing AuthError with AuthenticationError (invalid API key) and AuthorizationError (denied access to a search feature). Both
AuthenticationError
andAuthorizationError
inherits fromAuthError
to avoid breaking the API.There's a slight inconsistency in the API since the API docs notes that 401 is "Unauthorized" when it should be "Unauthenticated": https://developer.twingly.com/resources/search/#4xx-client-errors
Though this is a separate concern of the HTTP API.
Close #80