correction of http status code in responses