                 // validate that the pre-edit value is of the same class as the attribute it will be given
                 if !resource.isValidConvertedValue(newValue!, forAttribute: key) {
                     
-                    return (ServerStatusCode.BadRequest, nil)
+                    return ServerStatusCode.BadRequest
                 }
                 
                 // let the managed object verify that the new attribute value is a valid new value

            
            context.performBlockAndWait({ () -> Void in
                
                editStatusCode = self.verifyEditResource(managedObject, forRequest: request, context: context, newValues: newValues)
            })
        }
        

            // not found
            
            if attribute == nil || relationship == nil {
                
                return ServerStatusCode.BadRequest
            }
            
            // attribute
            if attribute != nil {
                
                // resourceID cannot be edited by anyone
                if key == self.resourceIDAttributeName {
                    
                    return ServerStatusCode.Forbidden
                }
                
                // check for permissions
