Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Created Issue: EnableOData will convert HttpError to ODataError even it's not from odata service [672]

$
0
0
By EnableOData in an existing web api project, all the HttpError in the project will be converted to ODataError when client requests application/json.

The error payload's shape will be changed:
Before enable odata:
{"Message":"No HTTP resource was found that matches the request URI 'http://localhost:8081/api/Value'.","MessageDetail":"No type was found that matches the controller named 'Value'."}

After enable odata:
{
"odata.error":{
"code":"","message":{
"lang":"en-US","value":"No HTTP resource was found that matches the request URI 'http://localhost:8081/api/Value'."
}
}
}


Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>