PROGRAM AREA
WebApi Top questions
Post
New Post
Find by name:
WebApi
First Name
PostDate
Tell me the code snippet to show how we can return 404 errors from HttpError?
string message = string.Format(“TestCustomer id = {0} not found”, customerid); return Request.CreateErrorResponse(HttpStatusCode.NotFound, message);
Web API supports which protocol?
Web App support HTTP protocol
By default, Web API sends HTTP response with which of the following status code for all uncaught exception?
500 - Internal Server Error
Page 8 of 12
««
«
…
3
4
5
6
7
8
9
10
11
12
»
Full Page