### Description See [here](https://github.com/go-gitea/gitea/blob/6784a707d101ef31a9ef3a46468c28e1d9700ac8/routers/api/v1/repo/release_attachment.go#L58-L62): ``` attach, err := repo_model.GetAttachmentByID(ctx, attachID) if err != nil { ctx.Error(http.StatusInternalServerError, "GetAttachmentByID", err) return } ``` It should return 404 when attachID is not found instead. ### Gitea Version dev ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist a ### Screenshots a ### Git Version a ### Operating System a ### How are you running Gitea? a ### Database SQLite