Use the BadResponseCode exception in RequestUtil

Allowing to read the returned status code in the calling classes when an
exception is thrown.