fixed get by id and wrong status code for post