fix typo
update error status code
minor bug fixed