add a raise_from_response helper method