fixed message.js

Forgot to add error function & typed info instead of Status in status function.