Updating status code for post methods