diff --git a/trunk/src/app/srs_app_http_api.cpp b/trunk/src/app/srs_app_http_api.cpp index 7063001a4..162218e3e 100755 --- a/trunk/src/app/srs_app_http_api.cpp +++ b/trunk/src/app/srs_app_http_api.cpp @@ -930,7 +930,7 @@ int SrsGoApiRaw::serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r) std::string scope = r->query_get("scope"); std::string vhost = r->query_get("vhost"); if (scope.empty() || (scope != "global" && scope != "vhost")) { - ret = ERROR_SYSTEM_CONFIG_RAW_PARAMS; + ret = ERROR_SYSTEM_CONFIG_RAW_NOT_ALLOWED; srs_error("raw api query invalid scope=%s. ret=%d", scope.c_str(), ret); return srs_api_response_code(w, r, ret); } @@ -988,7 +988,7 @@ int SrsGoApiRaw::serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r) std::string scope = r->query_get("scope"); std::string value = r->query_get("value"); if (scope.empty() || (scope != "global.listen" && scope != "global.pid")) { - ret = ERROR_SYSTEM_CONFIG_RAW_PARAMS; + ret = ERROR_SYSTEM_CONFIG_RAW_NOT_ALLOWED; srs_error("raw api query invalid scope=%s. ret=%d", scope.c_str(), ret); return srs_api_response_code(w, r, ret); } diff --git a/trunk/src/kernel/srs_kernel_error.hpp b/trunk/src/kernel/srs_kernel_error.hpp index b242dd4cc..03f90a524 100755 --- a/trunk/src/kernel/srs_kernel_error.hpp +++ b/trunk/src/kernel/srs_kernel_error.hpp @@ -100,7 +100,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #define ERROR_SYSTEM_CONFIG_PERSISTENCE 1059 #define ERROR_SYSTEM_CONFIG_RAW 1060 #define ERROR_SYSTEM_CONFIG_RAW_DISABLED 1061 -#define ERROR_SYSTEM_CONFIG_RAW_PARAMS 1062 +#define ERROR_SYSTEM_CONFIG_RAW_NOT_ALLOWED 1062 +#define ERROR_SYSTEM_CONFIG_RAW_PARAMS 1063 /////////////////////////////////////////////////////// // RTMP protocol error.