Fix uri failing when HTTP status is 304

We need to explicitly set status_code to 304 otherwise we will run into "Status code was not [200]" if the remote server responds with a 304 status during deployments.