diff options
Diffstat (limited to 'routers/api/v1/repo/label.go')
-rw-r--r-- | routers/api/v1/repo/label.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/repo/label.go b/routers/api/v1/repo/label.go index df7a370041..f61751f3ab 100644 --- a/routers/api/v1/repo/label.go +++ b/routers/api/v1/repo/label.go @@ -87,7 +87,7 @@ func GetLabel(ctx *context.APIContext) { } if err != nil { if models.IsErrLabelNotExist(err) { - ctx.Status(404) + ctx.NotFound() } else { ctx.Error(500, "GetLabelByRepoID", err) } @@ -172,7 +172,7 @@ func EditLabel(ctx *context.APIContext, form api.EditLabelOption) { label, err := models.GetLabelInRepoByID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id")) if err != nil { if models.IsErrLabelNotExist(err) { - ctx.Status(404) + ctx.NotFound() } else { ctx.Error(500, "GetLabelByRepoID", err) } |