lib/shutl/resource/errors.rb in shutl_resource-0.8.1 vs lib/shutl/resource/errors.rb in shutl_resource-0.8.2

- old
+ new

@@ -7,13 +7,12 @@ super message #it really is rather spot on, why thanks for saying, kind sir. end end # This NoQuotesGenerated is shutl specific corresponding to HTTP status 299. -# We had a good think about what the correct HTTP code is for the case that -# the request is fine, but we couldn't generate any quotes. It doesn't feel -# like a 4xx or a 5xx, but not quite like a 2xx either. Comments/thoughts -# more than welcome. +# The correct solution to this would be to remove this exception from the gem +# and handle specifically in a QuoteCollection resource in for example the +# 'shutl' gem. Shutl::NoQuotesGenerated = Class.new Shutl::Resource::Error Shutl::BadRequest = Class.new Shutl::Resource::Error Shutl::UnauthorizedAccess = Class.new Shutl::Resource::Error Shutl::ForbiddenAccess = Class.new Shutl::Resource::Error