[ 
https://issues.apache.org/jira/browse/SLING-13414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18141284#comment-18141284
 ] 

Konrad Windszus commented on SLING-13414:
-----------------------------------------

Supporting https://www.rfc-editor.org/rfc/rfc9457.html as response probably 
makes sense. This is also supported by e.g. CloudFlare CDN: 
https://blog.cloudflare.com/rfc-9457-agent-error-pages/. They return those 
responses whenever the  accept-response is one of {{Accept: text/markdown, 
Accept: application/json, or Accept: application/problem+json}}

> DefaultErrorHandler: better support non-HTML requests
> -----------------------------------------------------
>
>                 Key: SLING-13414
>                 URL: https://issues.apache.org/jira/browse/SLING-13414
>             Project: Sling
>          Issue Type: Improvement
>          Components: Engine
>    Affects Versions: Engine 3.0.4
>            Reporter: Joerg Hoh
>            Priority: Major
>
> The DefaultErrorHandler always returns HTML, even if the accept header says 
> that the user-agent does not expect HTML.
> Also add a reference to the DefaultErrorHandlerServlet in the Sling Servlets 
> Resolver.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to