#494 added 401->404 enforcement via config.
Merge pull request #500 from joola/feature/#494

#494 added 401->404 enforcement via config.