ulysses-you opened a new issue, #2632: URL: https://github.com/apache/incubator-kyuubi/issues/2632
### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) ### Search before asking - [X] I have searched in the [issues](https://github.com/apache/incubator-kyuubi/issues?q=is%3Aissue) and found no similar issues. ### Describe the feature Help user get the better error msg. For example: - GET `api/v1/batches/${batchId}`, if the batch id is not found before: ``` <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 404 Not Found</title> </head> <body><h2>HTTP ERROR 404 Not Found</h2> <table> <tr><th>URI:</th><td>/api/v1/batches/6656e0de-2ad8-4ec5-a003-537286ce22c4</td></tr> <tr><th>STATUS:</th><td>404</td></tr> <tr><th>MESSAGE:</th><td>Not Found</td></tr> <tr><th>SERVLET:</th><td>org.glassfish.jersey.servlet.ServletContainer-2001e48c</td></tr> </table> <hr><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.41.v20210516</a><hr/> </body> </html> ``` after: ``` Invalid batchId: xxxx ``` - POST `api/v1/batches`, if the input parameter is illegal (no specified resource) before: ``` { "servlet": "org.glassfish.jersey.servlet.ServletContainer-2001e48c", "message": "Request failed.", "url": "/api/v1/batches", "status": "500" } ``` after: ``` requirement failed: resource is a required parameter ``` ### Motivation _No response_ ### Describe the solution _No response_ ### Additional context _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
