- What are the special route tokens?
[controller], [action], and [area].
- How can we prevent a route from being selected depending on the request's HTTP verb?
Apply one of the[HttpPost],[HttpGet],[HttpPut],or other HTTP attributes to its action method.
- How can we prevent a route from being selected unless the request uses HTTPS?
Apply the [RequireHttps] attribute to the route's action method.
- How can we serve different views depending on the HTTP error code that occurred?
One way is to use eitherUseStatusCodePagesWithRedirectsor UseStatusCodePagesWithReExecuteinside theConfiguremethod of theStartupclass, create an action method on a controller that responds to the specific error code (for example,/error/401) by adding an[HttpGet("...