public function getHeaders() {
        $result = [];
        foreach ($this->context as $key => $value) {
            if (stripos($key, 'http_') === 0) {
                $key = Response::normalizeHeader(ltrim_substr($key, 'http_'));
                $result[$key] = $value;
            }
        }
        return $result;
    }
public function getHeaders() {
        $result = [];
        foreach ($this->context as $key => $value) {
            if (stripos($key, 'http_') === 0) {
                $key = Response::normalizeHeader(ltrim_substr($key, 'http_'));
                $result[$key] = $value;
            }
        }
        return $result;
    }
public function getHeaders ( ) { $ result = [ ] ; foreach ( $ this -> context as $ key => $ value ) { if ( stripos ( $ key , 'http_' ) === 0 ) { $ key = Response :: normalizeHeader ( ltrim_substr ( $ key , 'http_' ) ) ; $ result [ $ key ] = $ value ; } } return $ result ; }
Gets the response headers that were set on the exception.

@return array Returns the headers for this exception.
Gets the response headers that were set on the exception .