lib/apimaster/error.rb in apimaster-0.0.6 vs lib/apimaster/error.rb in apimaster-0.0.7
- old
+ new
@@ -22,10 +22,10 @@
end
end
class MissingError < NormalError
def initialize(resource = nil)
- super("Resource '#{resource}' does not exist.", 404, :missing, resource)
+ super("Resource '#{resource}' does not exist.", 410, :missing, resource)
end
end
class MissingFieldError < NormalError
def initialize(resource = nil, field = nil)