Add error log for 404
Support multiple pairs of pattern and its handler.