Don't show html page for error response
Merge pull request #28 from EasonLiao/disable_htmlcode

don't return html for error response