Raise custom error instead of simple Runtime errors on unexpected API status