test(rest-api): verify status and exception only in non-empty message body