wcf data services - Query interceptors: Change response status code -
is possible change http status code returned wcf data services when 1 of query interceptors return false?
as bonus, there way selectively return different status codes depending on query interceptor failed?
could use following access current service method , change returned http method header information
weboperationcontext operationcontext = new weboperationcontext(operationcontext.current); operationcontext.outgoingresponse.statuscode = httpstatuscode.unauthorized;
Comments
Post a Comment