Corrected HTTP status code check on POST responses