Add case for 404 in log decorator