Search code examples
wcf-data-servicesodata

Query interceptors: Change response status code


Is it possible to change the HTTP status code returned by WCF Data Services when one of the query interceptors return false?

As a bonus, is there a way to selectively return different status codes depending on the query interceptor that failed?


Solution

  • Turns out I was really looking for the Processing Pipeline.

    For reference, an identical question can be found here. The same concerns and solution are also expressed here and there, respectively.