HTTPErrorResponse

HTTPErrorResponse[code]

是一个对象,表示对 HTTP 请求的错误响应,带有指定的错误代码.

更多信息

  • 典型的错误代码包括:
  • "PageNotFound"、"NotFound"、 404
    "PermissionDenied"、"Forbidden"、或 403
    "ServerError" 500
  • HTTPErrorResponse 通常指定为来自诸如 APIFunction 这样构造的结果形式.

范例

基本范例  (1)

手动生成 HTTPResponse

返回没有从 Delayed 找到的页面:

APIFunction 返回 404:

Wolfram Research (2015),HTTPErrorResponse,Wolfram 语言函数,https://reference.wolfram.com/language/ref/HTTPErrorResponse.html.

文本

Wolfram Research (2015),HTTPErrorResponse,Wolfram 语言函数,https://reference.wolfram.com/language/ref/HTTPErrorResponse.html.

CMS

Wolfram 语言. 2015. "HTTPErrorResponse." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/HTTPErrorResponse.html.

APA

Wolfram 语言. (2015). HTTPErrorResponse. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/HTTPErrorResponse.html 年

BibTeX

@misc{reference.wolfram_2024_httperrorresponse, author="Wolfram Research", title="{HTTPErrorResponse}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/HTTPErrorResponse.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_httperrorresponse, organization={Wolfram Research}, title={HTTPErrorResponse}, year={2015}, url={https://reference.wolfram.com/language/ref/HTTPErrorResponse.html}, note=[Accessed: 21-November-2024 ]}