diff options
Diffstat (limited to 'routers/api/v1/repo/repo.go')
-rw-r--r-- | routers/api/v1/repo/repo.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index e5922e77dc..36e8380f44 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.go @@ -472,7 +472,7 @@ func GetByID(ctx *context.APIContext) { repo, err := models.GetRepositoryByID(ctx.ParamsInt64(":id")) if err != nil { if models.IsErrRepoNotExist(err) { - ctx.Status(404) + ctx.NotFound() } else { ctx.Error(500, "GetRepositoryByID", err) } @@ -484,7 +484,7 @@ func GetByID(ctx *context.APIContext) { ctx.Error(500, "AccessLevel", err) return } else if !perm.HasAccess() { - ctx.Status(404) + ctx.NotFound() return } ctx.JSON(200, repo.APIFormat(perm.AccessMode)) |