Getting headers and status code while using fetch_feed

fetch_feed() returns a SimplePie object. From a quick glance at its source, it looks like you can use

$feed->status_code     // on the public API
$feed->data['headers'] // technically private

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)