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.
Loading...
Related Quiz
- To enable MVC in ASP.NET Core's Startup.cs, which method should be invoked inside the ConfigureServices method?
- Imagine you have two route templates: /products/{id} and /products/new. An incoming request has the URL /products/new. Which route will it match and why?
- If you need to create a real-time communication application, the ________ template of ASP.NET Core is designed for this purpose.
- You're developing a web application and need to implement a feature where users can log in using their email or phone number. How can ASP.NET Core Identity support this requirement?
- Which method is typically used to sign a user out in ASP.NET Core?