Open tsloughter opened 7 years ago
Agreed.
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.
How about parsing {not_found, elli_hander:result()}
in FileserveConfig
?
It should be possible to define the response for a
404
to be other than simplyFile Not Found
, one might want to return a 404 html page for example.