However, even noncancelable tasks should attempt to preserve the interrupted status in case code higher up on the call stack wants to act on the interruption after the noncancelable task completes.
但是,即使是不可取消的任务也应该尝试保留中断状态,以防在不可取消的任务结束之后,调用栈上更高层的代码需要对中断进行处理。
In this case, a successful retrieval is indicated by a status code of "7".
在本例中,状态代码“7”指示成功的检索。
In case the specified resource is not available, it's a good idea to return a 404 (not Found) status code.
万一指定的资源不可用,返回404 (Not Found)状态码是一个不错的主意。
应用推荐