diff --git a/client/hijack_test.go b/client/hijack_test.go
index <HASH>..<HASH> 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()
client: use constants for http status codes