Not Gettting Zoho Creator API Error Codes

Not Gettting Zoho Creator API Error Codes

When I use a wrong ticket number on purpose or try to generate another type of error, I don't get an error code in my response from Zoho. Instead, I get a string containing HTML code and an error message.

For example, when I use a wrong ticket I get:
   
  1. <html>
  2. <head>
  3. <style>
  4. body {
  5. font-size: 14px;
  6. font-family: "Verfana";
  7. }
  8. div {
  9. margin-top:150px;
  10. vertical-align: middle;
  11. text-align: center;
  12. }
  13. </style>
  14. </head>
  15. <body>
  16. <div>
  17. An error has occured. It has been reported to Zoho Creator support. We will look into this issue .<br> Sorry for the inconvenience caused.<p><p>Go to <a href='/'>Home</a>
  18. </div>
  19. </body>
  20. </html>
And, when I remove the view name from the URL of a view request I get:
       
  1. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  2. <html><head>
  3. <title>404 Not Found</title>
  4. </head><body>
  5. <h1>Not Found</h1>
  6. <p>The requested URL /api/xml/app-test/view/apikey=d86761adcd4113c1cbda63f9934abce9&amp;ticket=536349c0594d25b7afe55254c1d7e36a was not found on this server.</p>
  7. </body></html>
  8. "
  9. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  10. <html><head>
  11. <title>404 Not Found</title>
  12. </head><body>
  13. <h1>Not Found</h1>
  14. <p>The requested URL /api/xml/app-test/view/apikey=d86761adcd4113c1cbda63f9934abce9&amp;ticket=536349c0594d25b7afe55254c1d7e36a was not found on this server.</p>
  15. </body></html>
How do you get errors in your response?