Revert "Error types in the message map were causing issues and not really helping much, so switched back to string types."

This was a poor solution to my problem - I'll just update the code that is having issues with it.

This reverts commit 181d6b66e0d6a21e25e99a490a69c550b184f33d.