I have MapExceptionToStatusCode set up for other exceptions, but even if I add ArgumentException => 400, it still comes back as 200.

Has this behaviour changed, or could it be remapped elsewhere?

cdmackie
—
2015-08-06T19:06:40Z —
#2

Never mind. My fault. I was returning it instead of throwing it!! Copy/pasta error.

I'll leave post here in case anyone else does same silly thing.

mythz
—
2015-08-06T20:51:35Z —
#3

Hi Colin,

Thanks for the update, but please also include the actual source code being used in future, as it saves a lot of time in being able to identify the issue and is needed in order to be able to reproduce the error.