lib/dor/services/client.rb in dor-services-client-5.0.0 vs lib/dor/services/client.rb in dor-services-client-5.1.0

- old
+ new

@@ -29,9 +29,12 @@ # Error that is raised when the remote server returns some unexpected response # this could be any 4xx or 5xx status class UnexpectedResponse < Error; end + # Error that is raised when the remote server returns a 401 Unauthorized + class UnauthorizedResponse < UnexpectedResponse; end + # Error that is raised when the remote server returns some unparsable response class MalformedResponse < Error; end # Error that wraps Faraday connection exceptions class ConnectionFailed < Error; end