*actions.resultError(*req*, *res*, *code*, *errorNum*, *errorMessage*, *headers*, *keyvals)* The function generates an error response. The response body is an array with an attribute *errorMessage* containing the error message *errorMessage*, *error* containing *true*, *code* containing *code*, *errorNum* containing *errorNum*, and *errorMessage* containing the error message *errorMessage*. *keyvals* are mixed into the result.