Merge branch '9854-container-validations-produce-bad-errors'
[arvados.git] / services / api / app / models / arvados_model.rb
index c663d21d5293bfd816140807a0bf57e34054d984..16f03430f718fc471a6f47529a4504ac745f7e22 100644 (file)
@@ -50,6 +50,12 @@ class ArvadosModel < ActiveRecord::Base
     end
   end
 
+  class UnresolvableContainerError < StandardError
+    def http_status
+      422
+    end
+  end
+
   def self.kind_class(kind)
     kind.match(/^arvados\#(.+)$/)[1].classify.safe_constantize rescue nil
   end