Add http error code to address precondition failed