add error code to error response
add npm command for travis ci
Merge pull request #52 from horiuchi/master

add error code for error response