store the response's http status code
set exception for when the server returns an error