Use valid JSON for error responses
Merge pull request #74 from halorgium/fix-error-response

Use valid JSON for error responses