[
https://issues.apache.org/jira/browse/SLING-12041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konrad Windszus resolved SLING-12041.
-------------------------------------
Resolution: Duplicate
> Slings Models Export Servlet: Never return 200 status in case of exceptions
> ---------------------------------------------------------------------------
>
> Key: SLING-12041
> URL: https://issues.apache.org/jira/browse/SLING-12041
> Project: Sling
> Issue Type: Improvement
> Components: Sling Models
> Affects Versions: Sling Models Impl 1.4.0, Sling Models Jackson Exporter
> 1.0.2
> Reporter: Konrad Windszus
> Priority: Major
>
> Especially for JSON exporters it doesn't make sense to render incomplete JSON
> with a 200 status code. All exception which may happen somewhere during the
> rendering should lead to a 4xx/5xx status code (and should not be caught
> prior to
> https://github.com/apache/sling-org-apache-sling-models-impl/blob/0b4f64e167a3999f2835de878191ef1f2b5b4938/src/main/java/org/apache/sling/models/impl/ExportServlet.java#L89)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)