Add support for custom error strings in ws_errno_tostr()

Feel free to suggest more changes.