Description Usage Arguments Value
If an HTTP request returns a status code that is not 200, then this functions throws an exception and prints the prettified response contents to stderr.
1 | check_http_code_throw_error(response)
|
response |
An HTTP response from a request to a search API request. |
Exception with prettified JSON response printed to stderr.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.