lib/ldp/client/methods.rb in ldp-0.0.8 vs lib/ldp/client/methods.rb in ldp-0.0.9

- old
+ new

@@ -104,12 +104,14 @@ def check_for_errors resp resp.tap do |resp| unless resp.success? raise case resp.status when 404 - Ldp::NotFound.new(resp.body) if resp.status == 404 + Ldp::NotFound.new(resp.body) + when 410 + Ldp::Gone.new(resp.body) when 412 - Ldp::EtagMismatch.new(resp.body) if resp.status == 412 + Ldp::EtagMismatch.new(resp.body) else Ldp::HttpError.new("STATUS: #{resp.status} #{resp.body[0, 1000]}...") end end end