José Correia created SLING-11371:
------------------------------------
Summary: Wrong 503-unavailable status code in Distribution API
responses
Key: SLING-11371
URL: https://issues.apache.org/jira/browse/SLING-11371
Project: Sling
Issue Type: Bug
Components: Content Distribution
Reporter: José Correia
Sometimes we are answered with an HTTP *503-UNAVAILABLE* status code when there
are unexpected errors within the distribution system.
This status code is misleading since the service is not unavailable, but had an
unexpected exception. Maybe a more precise status code would be a *500*
However, we need to make sure that we don't break current clients, so this
change needs to be discussed.
h2. Cases
#
[https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/servlet/DistributionAgentServlet.java#L74]
#
[https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/servlet/DistributionPackageExporterServlet.java#L81]
#
[https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/servlet/DistributionPackageExporterServlet.java#L157]
--
This message was sent by Atlassian Jira
(v8.20.7#820007)