How can I customize errors in REST API?

How can I customize error in Denodo's REST API? (Format:JSON) E.g. Insted of this error - {"name":"derived view name","elements":[],"links":[{"rel":"self","href":"http://ServerName:Port/server/dbname/apiname/views/derived_view_name?columnname=value"}]} Can I show customized error like "Column name is invalid" etc.?
24-07-2018 15:58:43 -0400

1 Answer

Hi, I just wanted to say that the link provided is not an error - it is just returning an empty set. If you were to put in a bad column name value in that service, the result would give you a specific error in relation to that column name. So the errors you wish to have present are technically already there, for the most part. However, to answer the request, you can customize the error using XSLT Transformations. This article [here]( goes into more detail on how to use it. What I recommend to do to avoid this empty set in the future, is have the developers use a view that contains the valid column names, and [associate]( that view to the view being exposed in the webservice. This makes it possible to not have the empty set returned. I hope this helps!
Denodo Team
25-07-2018 16:03:28 -0400
You must sign in to add an answer. If you do not have an account, you can register here