Having this plug if I ask for a url like http://localhost:4000/hey.txt I receive a response with a 404 status (which is good, because I have no such file), but "Internal server error" as body.
Investigating I've seen that a template 404.txt has been assigned (view_template: "404.txt") and I guess then the following code in ErrorView is executed:
# In case no render clause matches or no
# template is found, let's render it as 500
def template_not_found(_template, assigns) do
render "500.html", assigns
end
Having this plug if I ask for a url like http://localhost:4000/hey.txt I receive a response with a 404 status (which is good, because I have no such file), but "Internal server error" as body.
Investigating I've seen that a template 404.txt has been assigned (view_template: "404.txt") and I guess then the following code in ErrorView is executed:
giving the bad body message.