diff options
Diffstat (limited to 'routers/api/v1/repo/release.go')
-rw-r--r-- | routers/api/v1/repo/release.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/api/v1/repo/release.go b/routers/api/v1/repo/release.go index e622acb30c..1b5b19666c 100644 --- a/routers/api/v1/repo/release.go +++ b/routers/api/v1/repo/release.go @@ -46,7 +46,7 @@ func GetRelease(ctx *context.APIContext) { return } if release.RepoID != ctx.Repo.Repository.ID { - ctx.Status(404) + ctx.NotFound() return } if err := release.LoadAttributes(); err != nil { @@ -241,7 +241,7 @@ func EditRelease(ctx *context.APIContext, form api.EditReleaseOption) { } if err != nil && models.IsErrReleaseNotExist(err) || rel.IsTag || rel.RepoID != ctx.Repo.Repository.ID { - ctx.Status(404) + ctx.NotFound() return } @@ -313,7 +313,7 @@ func DeleteRelease(ctx *context.APIContext) { } if err != nil && models.IsErrReleaseNotExist(err) || rel.IsTag || rel.RepoID != ctx.Repo.Repository.ID { - ctx.Status(404) + ctx.NotFound() return } if err := models.DeleteReleaseByID(id, ctx.User, false); err != nil { |