Code Context $res = json_decode($response->body);
if ( $res->GBP_USD > 0 && $res->GBP_EUR > 0 ) {
$query_url = 'https://free.currconv.com/api/v7/convert?q=GBP_USD,GBP_EUR&compact=ultra&apiKey=7fb65e17056b96ada9f0'
$response = object(HttpSocketResponse) {
body => '{"status":400,"error":"Free servers are down indefinitely. Please use the premium API for the mean time: https://www.currencyconverterapi.com/pricing"}'
headers => array(
'Date' => 'Sat, 06 Dec 2025 04:20:05 GMT',
'Content-Type' => 'application/json; charset=utf-8',
'Content-Length' => '151',
'Connection' => 'close',
'X-Powered-By' => 'Express',
'Access-Control-Allow-Origin' => '*',
'Access-Control-Allow-Headers' => 'Origin, X-Requested-With, Content-Type, Accept',
'Nel' => '{"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}',
'ETag' => 'W/"97-luPpp91pdnhYOpvx84ADkhdoNyA"',
'Report-To' => '{"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=qgYoXdpfibq%2FCaFuMUlqowGXjMbtYQ3%2BiBY0UUGNW7Q%2Bwv%2FNXDtV%2FEcfFpycw5xbRcy3FT2QAr%2B5rsdY2ApkUZFapqxeCvYKNuGfUEKQXfPYLKOZ8ycGyN1JKDHs"}]}',
'cf-cache-status' => 'DYNAMIC',
'Server' => 'cloudflare',
'CF-RAY' => '9a98fd141cf57805-CDG',
'alt-svc' => 'h3=":443"; ma=86400'
)
cookies => false
httpVersion => 'HTTP/1.1'
code => '400'
reasonPhrase => 'Bad Request'
raw => 'HTTP/1.1 400 Bad Request
Date: Sat, 06 Dec 2025 04:20:05 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 151
Connection: close
X-Powered-By: Express
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
ETag: W/"97-luPpp91pdnhYOpvx84ADkhdoNyA"
Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=qgYoXdpfibq%2FCaFuMUlqowGXjMbtYQ3%2BiBY0UUGNW7Q%2Bwv%2FNXDtV%2FEcfFpycw5xbRcy3FT2QAr%2B5rsdY2ApkUZFapqxeCvYKNuGfUEKQXfPYLKOZ8ycGyN1JKDHs"}]}
cf-cache-status: DYNAMIC
Server: cloudflare
CF-RAY: 9a98fd141cf57805-CDG
alt-svc: h3=":443"; ma=86400
{"status":400,"error":"Free servers are down indefinitely. Please use the premium API for the mean time: https://www.currencyconverterapi.com/pricing"}'
context => array()
}
$res = object(stdClass) {
status => (int) 400
error => 'Free servers are down indefinitely. Please use the premium API for the mean time: https://www.currencyconverterapi.com/pricing'
}AppController::beforeRender() - APP/Controller/AppController.php, line 61
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 243
Controller::render() - CORE/Cake/Controller/Controller.php, line 936
CroogoAppController::render() - APP/Vendor/croogo/croogo/Croogo/Controller/CroogoAppController.php, line 368
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 106