This is an automated email from the ASF dual-hosted git repository. olli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-crypto.git
commit 3dd5f65bec5675bc1f2156c24a42948100a6b2df Author: Oliver Lietz <[email protected]> AuthorDate: Tue Jul 13 22:16:14 2021 +0200 [checkstyle] (coding) MagicNumber --- .../commons/crypto/webconsole/internal/EncryptWebConsolePlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/sling/commons/crypto/webconsole/internal/EncryptWebConsolePlugin.java b/src/main/java/org/apache/sling/commons/crypto/webconsole/internal/EncryptWebConsolePlugin.java index ce1e151..5b89e64 100644 --- a/src/main/java/org/apache/sling/commons/crypto/webconsole/internal/EncryptWebConsolePlugin.java +++ b/src/main/java/org/apache/sling/commons/crypto/webconsole/internal/EncryptWebConsolePlugin.java @@ -129,12 +129,12 @@ public final class EncryptWebConsolePlugin extends HttpServlet { private void handleParameterMissing(final HttpServletResponse response, final String parameter) throws IOException { final String message = String.format("Parameter %s is missing", parameter); - response.sendError(400, message); + response.sendError(HttpServletResponse.SC_BAD_REQUEST, message); } private void handleCryptoServiceNotFound(final HttpServletResponse response, final String id) throws IOException { final String message = String.format("Crypto service with service id %s not found", id); - response.sendError(404, message); + response.sendError(HttpServletResponse.SC_NOT_FOUND, message); } private @NotNull String buildForm(final ServiceReference<CryptoService>[] references) {
