When configuring static file serving in ASP.NET Core, which property can be set to provide a response when a static file is not found?

  • FileNotFoundResponse
  • FileServerOptions.NotFound
  • NotFoundAction
  • DefaultResponse
When configuring static file serving in ASP.NET Core, you can set the NotFound property within the FileServerOptions class to customize the response when a static file is not found. This allows you to control the behavior, such as returning a custom error page or redirecting to a specific URL when a requested static file is missing.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *