diff --git a/lib/deep_unrest.rb b/lib/deep_unrest.rb
index <HASH>..<HASH> 100644
--- a/lib/deep_unrest.rb
+++ b/lib/deep_unrest.rb
@@ -388,7 +388,7 @@ module DeepUnrest
     record = res[:record]
     errors = record&.errors&.messages
     if errors
-      base_key = "#{record.class.to_s.underscore.pluralize}[#{i}]"
+      base_key = "#{record.class.to_s.camelize(:lower).pluralize}[#{i}]"
       errors.keys.map do |attr|
         if record.respond_to? attr
           errors["#{base_key}.#{attr}".to_sym] = errors.delete(attr)
[bugfix] casing of error key on root resource errors