Error Information Report

This method returns HTTP 400 and 500 errors.

 

The “xx” characters are must be number. Minimum 00, maximum 99.

Parameters

Return Values

Example PHP Code

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.medianova.com/v1/report/http-status/{4xx|5xx}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Example Output

{
  "status": true,
  "data": [
    {
      "hit": 21640,
      "method": "GET",
      "protocol": "HTTP/1.1",
      "url": "https://img-docsmedianova.mncdn.com/"
    }
  ]
}