<!-- PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION. ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION. --> ## I'm submitting a... <!-- Check one of the following options with "x" --> <pre><code> [x] Bug report <!-- Please search GitHub for a similar issue or PR before submitting --> [ ] Performance issue [ ] Feature request [ ] Documentation issue or request [ ] Other... Please describe: </code></pre> ## Current behavior <!-- Describe how the issue manifests. --> Calling API endpoint return `HTML` page rather than `json` if something goes wrong in server side. ## Expected behavior <!-- Describe what the desired behavior would be. --> API endpoint should always return result in json format. If there is any problem then it should return in `json` format too
I'm submitting a...
Current behavior
Calling API endpoint return
HTMLpage rather thanjsonif something goes wrong in server side.Expected behavior
API endpoint should always return result in json format. If there is any problem then it should return in
jsonformat too