@@ -67,11 +67,11 @@ func GetStarredRepos(ctx *context.APIContext) {
6767 // "$ref": "#/responses/RepositoryList"
6868 // "404":
6969 // "$ref": "#/responses/notFound"
70- // "410 ":
71- // "$ref": "#/responses/gone "
70+ // "403 ":
71+ // "$ref": "#/responses/forbidden "
7272
7373 if setting .Repository .DisableStars {
74- ctx .Error (http .StatusGone , "StarsDisabled" , "Stars are disabled." )
74+ ctx .Error (http .StatusForbidden , "StarsDisabled" , "Stars are disabled." )
7575 return
7676 }
7777
@@ -105,11 +105,11 @@ func GetMyStarredRepos(ctx *context.APIContext) {
105105 // responses:
106106 // "200":
107107 // "$ref": "#/responses/RepositoryList"
108- // "410 ":
109- // "$ref": "#/responses/gone "
108+ // "403 ":
109+ // "$ref": "#/responses/forbidden "
110110
111111 if setting .Repository .DisableStars {
112- ctx .Error (http .StatusGone , "StarsDisabled" , "Stars are disabled." )
112+ ctx .Error (http .StatusForbidden , "StarsDisabled" , "Stars are disabled." )
113113 return
114114 }
115115
@@ -143,11 +143,11 @@ func IsStarring(ctx *context.APIContext) {
143143 // "$ref": "#/responses/empty"
144144 // "404":
145145 // "$ref": "#/responses/notFound"
146- // "410 ":
147- // "$ref": "#/responses/gone "
146+ // "403 ":
147+ // "$ref": "#/responses/forbidden "
148148
149149 if setting .Repository .DisableStars {
150- ctx .Error (http .StatusGone , "StarsDisabled" , "Stars are disabled." )
150+ ctx .Error (http .StatusForbidden , "StarsDisabled" , "Stars are disabled." )
151151 return
152152 }
153153
@@ -181,11 +181,9 @@ func Star(ctx *context.APIContext) {
181181 // "$ref": "#/responses/forbidden"
182182 // "404":
183183 // "$ref": "#/responses/notFound"
184- // "410":
185- // "$ref": "#/responses/gone"
186184
187185 if setting .Repository .DisableStars {
188- ctx .Error (http .StatusGone , "StarsDisabled" , "Stars are disabled." )
186+ ctx .Error (http .StatusForbidden , "StarsDisabled" , "Stars are disabled." )
189187 return
190188 }
191189
@@ -222,11 +220,11 @@ func Unstar(ctx *context.APIContext) {
222220 // "$ref": "#/responses/empty"
223221 // "404":
224222 // "$ref": "#/responses/notFound"
225- // "410 ":
226- // "$ref": "#/responses/gone "
223+ // "403 ":
224+ // "$ref": "#/responses/forbidden "
227225
228226 if setting .Repository .DisableStars {
229- ctx .Error (http .StatusGone , "StarsDisabled" , "Stars are disabled." )
227+ ctx .Error (http .StatusForbidden , "StarsDisabled" , "Stars are disabled." )
230228 return
231229 }
232230
0 commit comments