spray/spray — Issue #50: getFromFile/getFromResource return empty 404 response on missing file/resource
Author: sirthias
Created: 2011-10-21 09:15:28+00:00
State: open
Labels: Bug

Better:
If the file/resource does not exist don't complete the request right away with a 404 response but simply reject it (just like an unmatching path/pathPrefix directive does). This usually creates a proper 404 response on the outermost level but has the additional benefit of giving other routes chained in after the 'getFrom...' directive a chance to act.