From a97fa3f43e313848ba6b4cd65840ba8c60ac485f Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Thu, 22 May 2008 12:59:42 +0000 Subject: changing more 'raw' HTTP status codes to OSHttpStatusCodes. --- .../Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Modules') diff --git a/OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs b/OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs index 87ecfee..e0d5972 100644 --- a/OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs +++ b/OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs @@ -34,6 +34,7 @@ using System.Threading; using libsecondlife; using Nini.Config; using OpenSim.Framework; +using OpenSim.Framework.Servers; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; @@ -340,13 +341,13 @@ namespace OpenSim.Region.Environment.Modules.Scripting.HttpRequest } catch (Exception e) { - status = 499; + status = (int)OSHttpStatusCode.ClientErrorJoker; response_body = e.Message; finished = true; return; } - status = 200; + status = (int)OSHttpStatusCode.SuccessOk; finished = true; } -- cgit v1.1