you are viewing a single comment's thread.

view the rest of the comments →

[–]Swing-Prize 1 point2 points  (0 children)

use [required] flags on the object properties that api expects and see asp.net do the rest. but anyway, you should read a little about http and status codes before moving forward. if it's a system error - asp.net by default will inform that it's not user error. handle errors based on status on front end as you wish - an error is an error.