`actions.resultBad(req, res, error-code, msg, headers)` The function generates an error response.