I am returning a NotFound IHttpActionResult
, when something is not found in my WebApi GET action. Along with this response, I want to send a custom message and/or the exception message (if any). The current ApiController
's NotFound()
method does not provide an overload to pass a message.
Is there any way of doing this? or I will have to write my own custom IHttpActionResult
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…