ExceptionOptions.LegacyStatusCodeSelector property

.NET 8: Optional custom status code selector for JSON/script fallback. Lets you map exception types to status codes.

public Func<Exception, int>? LegacyStatusCodeSelector { get; set; }

See Also