MapExceptionToStatusCode seems to match only exact type. How can be customize to match also devired type of a specified base type?We do have a base custom exception MyException : Exception and also few other inheriting from that

Custom1Exception : MyException, Custom2Exception : MyException

I'd like to set somenthig like

MapExceptionToStatusCode = { { typeof(MyException), 400 } }

and have HttpErrorCode = 400 also if I throw Custom1Exception or Custom2Exception