How do I, inside an HttpErrorHandler tell the expected format?

Sep 19, 2011 at 6:10 PM

So I catch my error and have all the details I want. Now I create a HttpResponseMessage() but I want to ensure the contents will be in serialized using the expected format from accept: application/json (or xml or bson or ...) 

Where is the original result/request so I can figure that out?

 

Thanks