lib/duracloud/error_handler.rb in duracloud-client-0.0.3 vs lib/duracloud/error_handler.rb in duracloud-client-0.1.0

- old
+ new

@@ -35,11 +35,19 @@ def handle_default Error end + def handle_400 + BadRequestError + end + def handle_404 NotFoundError + end + + def handle_409 + ConflictError end def response_has_error_message? response.plain_text? && response.has_body? end