Refactored http status code check for POST and DELETE, updated tests