Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对于不存在的文件, 是否可以不返回200呢 #7532

Open
4 tasks
nuan1989 opened this issue Nov 21, 2024 · 0 comments
Open
4 tasks

对于不存在的文件, 是否可以不返回200呢 #7532

nuan1989 opened this issue Nov 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nuan1989
Copy link

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure this feature is not implemented.
  • I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

我调用链接下载文件用. 希望对不存在的文件, 能返回别的状态码. 都是200没法判断.
可能你会说判断返回的是否是application/json
但是我需要下载的文件假如就是json格式呢?

1

Suggested solution / 实现思路

No response

Additional context / 附件

No response

@nuan1989 nuan1989 added the enhancement New feature or request label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant