Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Can we design different response code for the rest builder
Hello,
I am using the rest builder template for my application.
I want to design different error codes (like 500, 501, 502...)
responses:
200:
description: ""
content:
application/json:
schema:
$ref: "#/components/schemas/GetWebInformationBoxes"
application/xml:
schema:
$ref: "#/components/schemas/GetWebInformationBoxes"
500:
description: ""
content:
application/json:
schema:
$ref: "#/components/schemas/error500"
application/xml:
schema:
$ref: "#/components/schemas/error500"
But I am not able to achieve this.
Is it possible with the Liferay to do this? let me know if we can do any customization for this.
Thank you in Advance