0

我正在使用 APIv2 对我的代码进行单元测试。

场景如下:

  1. 上传新文件,说它返回 id "12345"
  2. 删除新文件
  3. 尝试下载已删除的新文件 ID“12345”

结果:500 内部服务器错误

我知道它不应该真的发生,但我期待像 404 not found 这样的错误。我相当有信心它不是我的代码,因为下载有效文件是有效的。

我是否有理由期待 500 以外的代码?

4

1 回答 1

0

This is not the intended error code. As the resource no longer exists, we should be returning a 404 Not Found. We'll be fixing this shortly.

于 2012-08-22T18:10:39.750 回答