From 9dff29f95b406bf2f12522ddf219a65abd22cd98 Mon Sep 17 00:00:00 2001 From: Felix Ostrowski Date: Fri, 29 Apr 2016 13:31:08 +0200 Subject: [PATCH] Fix response code --- app/controllers/Application.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/Application.java b/app/controllers/Application.java index 0b2f507..0bf16f1 100644 --- a/app/controllers/Application.java +++ b/app/controllers/Application.java @@ -222,7 +222,7 @@ public Result notFoundPage() { public Result notAcceptablePage() { try { - return notFound(layoutProvider.getTemplateLoader().sourceAt("en/406.html").content()).as("text/html"); + return status(406, layoutProvider.getTemplateLoader().sourceAt("en/406.html").content()).as("text/html"); } catch (IOException e) { Logger.error(e.toString()); return status(406, "Not Acceptable");