add 404 header if resource not found (closes #3541)
add log msg if resource not found (closes #3619)