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