Using PostForEntity to get response status