Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom 404.html #7

Open
tsloughter opened this issue Sep 21, 2016 · 3 comments
Open

Custom 404.html #7

tsloughter opened this issue Sep 21, 2016 · 3 comments

Comments

@tsloughter
Copy link
Member

It should be possible to define the response for a 404 to be other than simply File Not Found, one might want to return a 404 html page for example.

@yurrriq
Copy link
Member

yurrriq commented Sep 21, 2016

Agreed.

@yurrriq
Copy link
Member

yurrriq commented Sep 21, 2016

Perhaps we could accomplish this by supporting a configurable elli_middleware callback module, if given (and valid) we could call its postprocess/3 and allow users to modify the default 403/404 responses as desired.

Related: elli-lib/elli#3

@yurrriq
Copy link
Member

yurrriq commented Nov 10, 2016

How about parsing {not_found, elli_hander:result()} in FileserveConfig?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants