Issue #3165991 by yas: Refactor assertions for message status and HTTP response code in test cases (AWS Cloud) (3)