Fix(API): use right status code

This commit is contained in:
Dreamacro
2019-09-08 22:33:52 +08:00
parent 9815010131
commit 60fdd82e2b
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ func getProxyDelay(w http.ResponseWriter, r *http.Request) {
elm := picker.Wait()
if elm == nil {
render.Status(r, http.StatusRequestTimeout)
render.Status(r, http.StatusGatewayTimeout)
render.JSON(w, r, ErrRequestTimeout)
return
}