How can we customize invalid POST servlet Response
We would like to customize the POST servlet response in case of the invalid servlet response, how can we customize this? OOTB response for the invalid servlet (/bin/testpost/rest) is like
How can we customize invalid POST servlet Response
<html>
<head>
<title>Error while processing /bin/testpost/rest</title>
</head>
<body>
<h1>Error while processing /bin/testpost/rest</h1>
<table>
<tbody>
<tr>
<td>Status</td>
<td>
<div id="Status">500</div>
</td>
</tr>
<tr>
<td>Message</td>
<td>
<div id="Message">org.apache.sling.api.resource.PersistenceException: Unable to create node at
/bin/testpost</div>
</td>
</tr>
<tr>
<td>Location</td>
<td>/bin/testpost/rest</td>
</tr>
<tr>
<td>Parent Location</td>
<td>/bin/testpost</td>
</tr>
<tr>
<td>Path</td>
<td>
<div id="Path">/bin/testpost/rest</div>
</td>
</tr>
<tr>
<td>Referer</td>
<td><a href="http://localhost:4502/en_US/book/page-search.html"
id="Referer">http://localhost:4502/en_US/book/page-search.html</a></td>
</tr>
<tr>
<td>ChangeLog</td>
<td>
<div id="ChangeLog"></div>
</td>
</tr>
</tbody>
</table>
<p><a href="http://localhost:4502/en_US/book/page-search.html">Go Back</a></p>
<p>Modified Resource</p>
<p>Parent of Modified Resource</p>
</body>
</html>

