HTTPErrorResponse

HTTPErrorResponse[code]

is an object that represents an error response to an HTTP request, with specified error code.

Details

  • Typical error codes include:
  • "PageNotFound","NotFound",or 404
    "PermissionDenied","Forbidden", or 403
    "ServerError" or 500
  • HTTPErrorResponse is typically specified as a result from constructs such as APIFunction.

Examples

Basic Examples  (1)

Manually generate the HTTPResponse:

Return a page not found from a Delayed:

Return a 404 from an APIFunction:

Wolfram Research (2015), HTTPErrorResponse, Wolfram Language function, https://reference.wolfram.com/language/ref/HTTPErrorResponse.html.

Text

Wolfram Research (2015), HTTPErrorResponse, Wolfram Language function, https://reference.wolfram.com/language/ref/HTTPErrorResponse.html.

CMS

Wolfram Language. 2015. "HTTPErrorResponse." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/HTTPErrorResponse.html.

APA

Wolfram Language. (2015). HTTPErrorResponse. Wolfram Language & System Documentation Center. Retrieved from 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-December-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-December-2024 ]}