CORNEAU Damien created ZEPPELIN-597:
---------------------------------------

             Summary: Change Zeppelin REST API Error Code
                 Key: ZEPPELIN-597
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-597
             Project: Zeppelin
          Issue Type: Improvement
            Reporter: CORNEAU Damien
             Fix For: 0.5.6


While reviewing a PR, I realized that no REST API call actually have a proper 
Error Code.

As stated in the documentation: 
https://zeppelin.incubator.apache.org/docs/0.6.0-incubating-SNAPSHOT/rest-api/rest-notebook.html

The only Error code is: 500

However 500 means Internal Error (cf. 
https://www.w3.org/Protocols/HTTP/HTRESP.html)

We should provide proper Error code and response message in the REST API, so 
that the user can directly be aware of what is wrong.

The current code suggest that Zeppelin crashed, even if the user specified a 
wrong parameter.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to