enhanced message producer mock to support returning different status codes