Stuff error codes in an enum class.