mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	Updates to API 404 responses (#6077)
This commit is contained in:
		
				
					committed by
					
						 techknowlogick
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							d10a668ffc
						
					
				
				
					commit
					cac9e6e760
				
			| @@ -239,7 +239,7 @@ func DeleteHook(ctx *context.APIContext) { | ||||
| 	//     "$ref": "#/responses/notFound" | ||||
| 	if err := models.DeleteWebhookByRepoID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id")); err != nil { | ||||
| 		if models.IsErrWebhookNotExist(err) { | ||||
| 			ctx.Status(404) | ||||
| 			ctx.NotFound() | ||||
| 		} else { | ||||
| 			ctx.Error(500, "DeleteWebhookByRepoID", err) | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user