Fix Errors

syntax fix

raise general error if status type isn't known
Merge pull request #6 from jugnoo/ErrorFix

Fix Errors