Issue 15604

Return json on error

15604
Reporter: mdoering
Type: Bug
Summary: Return json on error
Priority: Critical
Resolution: Invalid
Status: Closed
Created: 2014-05-12 09:47:50.068
Updated: 2014-06-24 11:52:43.774
Resolved: 2014-06-24 11:52:43.729
        
Description: On error we return html instead of json. This causes trouble to some javascript clients, although errors can usually be handled through their http code gracefully. Would still be nice to return proper json on error.

Reported by Jordan from Pensoft]]>
    


Author: omeyn@gbif.org
Comment: A webservice call can legitimately and correctly return an HTTP status code with accompanying html. A client should be able to handle these codes.
Created: 2014-06-24 11:52:43.759
Updated: 2014-06-24 11:52:43.759