diff --git a/httpserver.go b/httpserver.go index a5e3b7d..703502c 100644 --- a/httpserver.go +++ b/httpserver.go @@ -87,12 +87,12 @@ func (this *HttpServer) dispatchRequest(c *Context) { atomic.AddInt64(&this.okTimes, 1) if err := recover(); err != nil { SysLog().Error("handle name:%s error:%s", handleName, err) - c.Response(`{"errcode":500, "errmsg":"服务器内部错误"}`) + c.Response(`{"errcode":500, "errmsg":"server internal error"}`) } }() handle(c) } else { - c.Response(`{"errcode":404, "errmsg":"接口不存在"}`) + c.Response(`{"errcode":404, "errmsg":"interface not found"}`) atomic.AddInt64(&this.pageNotFoundTimes, 1) } }