summaryrefslogtreecommitdiffstats
path: root/api4/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/api.go')
-rw-r--r--api4/api.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/api4/api.go b/api4/api.go
index 6e9534d40..8ed94c193 100644
--- a/api4/api.go
+++ b/api4/api.go
@@ -237,9 +237,8 @@ func HandleEtag(etag string, routeName string, w http.ResponseWriter, r *http.Re
}
func Handle404(w http.ResponseWriter, r *http.Request) {
- err := model.NewLocAppError("Handle404", "api.context.404.app_error", nil, "")
+ err := model.NewAppError("Handle404", "api.context.404.app_error", nil, "", http.StatusNotFound)
err.Translate(utils.T)
- err.StatusCode = http.StatusNotFound
l4g.Debug("%v: code=404 ip=%v", r.URL.Path, utils.GetIpAddress(r))