Can we design different response code for the rest builderCan we design different response code for the rest builderhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1214110462024-03-29T06:11:24Z2024-03-29T06:11:24ZCan we design different response code for the rest builderBhargav Vaghasiyahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1214110452022-04-28T15:44:36Z2022-04-28T10:40:04Z<p>Hello,</p>
<p>I am using the rest builder template for my application.</p>
<p>I want to design different error codes (like 500, 501, 502...)</p>
<blockquote>
<p>responses:<br /> 200:<br /> description:
""<br /> content:<br />
application/json:<br /> schema:<br />
$ref:
"#/components/schemas/GetWebInformationBoxes"<br />
application/xml:<br /> schema:<br />
$ref:
"#/components/schemas/GetWebInformationBoxes"<br />
500:<br /> description: ""<br />
content:<br /> application/json:<br />
schema:<br /> $ref:
"#/components/schemas/error500"<br />
application/xml:<br /> schema:<br />
$ref: "#/components/schemas/error500"</p></blockquote>
<p>But I am not able to achieve this.</p>
<p>Is it possible with the Liferay to do this? let me know if we can do
any customization for this.</p>
<p>Thank you in Advance<