Skip to content

Commit

Permalink
Fix response code
Browse files Browse the repository at this point in the history
  • Loading branch information
literarymachine committed Apr 29, 2016
1 parent 9e21d8c commit 9dff29f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 9dff29f

Please sign in to comment.