Skip to content

Commit

Permalink
feat: add additional information to error response
Browse files Browse the repository at this point in the history
  • Loading branch information
DelanoWAF committed Jun 23, 2023
1 parent 26eb6e4 commit 2b9c2f6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@
</xsl:when>
<xsl:otherwise>
<code>ServerError</code>
<reason>Some negative response </reason>
<reason>An unknown error occurred </reason>
</xsl:otherwise>
</xsl:choose>
<details>
<xsl:value-of select="concat(/root/code, ' ', /root/title, ' ', /root/status, ' ', /root/detail)" />
</details>
<response>
<xsl:value-of select="/"/>
</response>
</error>
</xsl:template>
</xsl:stylesheet>

0 comments on commit 2b9c2f6

Please sign in to comment.