fixed a error response issue
Merge pull request #4 from liip/error_response_fix

fixed a error response issue