Added exceptions for bad responses