Enforce error msg for all error codes with coverage test

Change-Id: I25404aec36d404ddf3ce9c716e1dbc206cafaf58