Add wrapper around aws response to handle http status code and aws error