diff --git a/app/api/openapi/repo.go b/app/api/openapi/repo.go index 804611e725..002f049cd3 100644 --- a/app/api/openapi/repo.go +++ b/app/api/openapi/repo.go @@ -1515,7 +1515,7 @@ func repoOperations(reflector *openapi3.Reflector) { repoRequest repo.CreateForkInput }{}, http.MethodPost) - _ = reflector.SetJSONResponse(&opForkCreate, new(repo.RepositoryOutput), http.StatusOK) + _ = reflector.SetJSONResponse(&opForkCreate, new(repo.RepositoryOutput), http.StatusCreated) _ = reflector.SetJSONResponse(&opForkCreate, new(usererror.Error), http.StatusBadRequest) _ = reflector.SetJSONResponse(&opForkCreate, new(usererror.Error), http.StatusInternalServerError) _ = reflector.SetJSONResponse(&opForkCreate, new(usererror.Error), http.StatusUnauthorized)