error r status code 错误状态码
Because the exception has been handled, the event method does not return an HTTP error status code.
因为异常已被处理,所以该事件方法不返回HTTP错误状态代码。
If a user is not authenticated when trying to access this resource, the user will receive a 401 status code and the application can provide a special error handler to deal with that condition.
如果用户在尝试访问这个资源时还没有经过身份验证,那么用户会收到401状态码,应用程序可以提供一个特殊的错误处理函数来处理这种情况。
As you can see from the output of the command, it only returns an error if it gets a status code that doesn't match what is expected.
从命令的输出可以看到,如果获得的状态代码与预期的代码不匹配,将返回一个错误。
应用推荐