def process_response_errors
        if self.response_errors && self.response_errors.any?
          self.response_errors.each do |error|
            key = error[:attribute] && !error[:attribute].empty? ? error[:attribute] : :base
            val = error[:value] && !error[:value].empty? ? error[:value] : error[:title]
            self.errors[key.to_sym] << val
          end
        end
      end
def process_response_errors
        if self.response_errors && self.response_errors.any?
          self.response_errors.each do |error|
            key = error[:attribute] && !error[:attribute].empty? ? error[:attribute] : :base
            val = error[:value] && !error[:value].empty? ? error[:value] : error[:title]
            self.errors[key.to_sym] << val
          end
        end
      end
Process errors from the servers and add them to the
 model
 Servers are returned using the jsonapi format
 E.g.:
 errors: [
   {
     :id=>"f720ca10-b104-0132-dbc0-600308937d74",
     :href=>"http://maestrano.github.io/enterprise/#users-users-list-post",
     :status=>"400",
     :code=>"name-can-t-be-blank",
     :title=>"Name can't be blank",
     :detail=>"Name can't be blank"
     :attribute => "name"
     :value => "can't be blank"
   }
 ]