From 7815d65e5c315990086c84e440cae125c77b3687 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 21 Jun 2017 10:50:54 -0400 Subject: update responses --- SocketHttpListener/Net/HttpConnection.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'SocketHttpListener/Net/HttpConnection.cs') diff --git a/SocketHttpListener/Net/HttpConnection.cs b/SocketHttpListener/Net/HttpConnection.cs index 79491d6f9..e66443c59 100644 --- a/SocketHttpListener/Net/HttpConnection.cs +++ b/SocketHttpListener/Net/HttpConnection.cs @@ -268,7 +268,8 @@ namespace SocketHttpListener.Net if (!_epl.BindContext(_context)) { - SendError("Invalid host", 400); + const int NotFoundErrorCode = 404; + SendError(HttpStatusDescription.Get(NotFoundErrorCode), NotFoundErrorCode); Close(true); return; } -- cgit v1.2.3