From d1817b61351667aadb6d8b5afea3518d5908cdc1 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sun, 13 Oct 2019 17:25:39 +0200 Subject: [PATCH] client: use constants for http status codes Signed-off-by: Sebastiaan van Stijn --- client/hijack_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/hijack_test.go b/client/hijack_test.go index 255f818501..69e5b41e2b 100644 --- a/client/hijack_test.go +++ b/client/hijack_test.go @@ -25,13 +25,13 @@ func TestTLSCloseWriter(t *testing.T) { defer close(chErr) if err := httputils.ParseForm(req); err != nil { chErr <- errors.Wrap(err, "error parsing form") - http.Error(w, err.Error(), 500) + http.Error(w, err.Error(), http.StatusInternalServerError) return } r, rw, err := httputils.HijackConnection(w) if err != nil { chErr <- errors.Wrap(err, "error hijacking connection") - http.Error(w, err.Error(), 500) + http.Error(w, err.Error(), http.StatusInternalServerError) return } defer r.Close()