From e6a097a590233aa677a04511eb3d6b3025557297 Mon Sep 17 00:00:00 2001 From: Ori Schwartz Date: Tue, 23 Jan 2018 12:42:43 -0800 Subject: [PATCH] Use the correct HTTP status code constant in NotModifiedException NotModifiedException was using HttpServletResponse.SC_NOT_FOUND instead of SC_NOT_MODIFIED (likely an autocomplete typo). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=182976671 --- java/google/registry/request/HttpException.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/google/registry/request/HttpException.java b/java/google/registry/request/HttpException.java index fa94e57c2..d5597f4aa 100644 --- a/java/google/registry/request/HttpException.java +++ b/java/google/registry/request/HttpException.java @@ -84,7 +84,7 @@ public abstract class HttpException extends RuntimeException { } public NotModifiedException(String message) { - super(HttpServletResponse.SC_NOT_FOUND, message, null); + super(HttpServletResponse.SC_NOT_MODIFIED, message, null); } @Override