summaryrefslogtreecommitdiffstats
path: root/api4/websocket.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/websocket.go')
-rw-r--r--api4/websocket.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api4/websocket.go b/api4/websocket.go
index 1caef6c4a..fade548cb 100644
--- a/api4/websocket.go
+++ b/api4/websocket.go
@@ -31,7 +31,7 @@ func connectWebSocket(c *Context, w http.ResponseWriter, r *http.Request) {
ws, err := upgrader.Upgrade(w, r, nil)
if err != nil {
l4g.Error(utils.T("api.web_socket.connect.error"), err)
- c.Err = model.NewLocAppError("connect", "api.web_socket.connect.upgrade.app_error", nil, "")
+ c.Err = model.NewAppError("connect", "api.web_socket.connect.upgrade.app_error", nil, "", http.StatusInternalServerError)
return
}