I’m throwing an ArgumentException in a service, but it comes back to the browser with HTTP status 200, I was expecting 400 (described here)
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Vary: Accept
Server: Microsoft-IIS/8.5
X-Powered-By: ServiceStack/4.042 Win32NT/.NET
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Thu, 06 Aug 2015 18:12:33 GMT
Content-Length: 64
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?