added file not found functionality and mime type headers