|
@@ 85-88 (lines=4) @@
|
| 82 |
|
$result = 'Success'; |
| 83 |
|
http_response_code(200); |
| 84 |
|
break; |
| 85 |
|
case 400: |
| 86 |
|
$result = json_decode($result->body, true); |
| 87 |
|
error_log('Error 400 - ' . print_r($result, true)); |
| 88 |
|
break; |
| 89 |
|
case 401: |
| 90 |
|
|
| 91 |
|
if($result == "Unauthorized") |
|
@@ 125-128 (lines=4) @@
|
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
break; |
| 125 |
|
case 477: |
| 126 |
|
$result = json_decode($result->body, true); |
| 127 |
|
error_log('Error 477 - ' . print_r($result, true)); |
| 128 |
|
break; |
| 129 |
|
case 429: |
| 130 |
|
error_log('Error 429 - Too Many Requests' . print_r(json_decode($result->body, true), true)); |
| 131 |
|
exit("Error 429: Too Many Requests"); |
|
@@ 129-132 (lines=4) @@
|
| 126 |
|
$result = json_decode($result->body, true); |
| 127 |
|
error_log('Error 477 - ' . print_r($result, true)); |
| 128 |
|
break; |
| 129 |
|
case 429: |
| 130 |
|
error_log('Error 429 - Too Many Requests' . print_r(json_decode($result->body, true), true)); |
| 131 |
|
exit("Error 429: Too Many Requests"); |
| 132 |
|
break; |
| 133 |
|
case 403: |
| 134 |
|
error_log('Error 403 - Access denied:' . print_r(json_decode($result->body, true), true)); |
| 135 |
|
$result = json_decode($result->body, true); |