fix http status code & content length