View source: R/error-handling.R
stop_html | R Documentation |
This variation of stop
can be used to raise an error with a specific error
code. This is provided to the API Gateway to return an appropriate response.
It had no use outside of invocations via an API Gateway.
If a status code is not provided, a generic "500" internal server error will be used.
stop_html(..., code = 500L)
... |
zero or more objects which can be coerced to character (and which are pasted together with no separator). This forms the error message. |
code |
HTTP status code to return (if applicable). Defaults to |
## Not run:
stop_html("Resource doesn't exist", code = 404L)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.