fix response code for posts