$remote->code() Returns the http status code kirby/src/Http/Remote.php#L109 $remote->code(): int|null Return type int|null Parent class Kirby\Http\Remote Example <?php $response = Remote::get('http://placekitten.com/200/300'); // Do stuff depending on http code // Codes and how you want to handle them depends on the API you are querying if ($response->code() === 200) { // do something if the request is successful }