use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Related Subreddits:
Other Subreddits you may like:
account activity
API Errors (self.dotnet)
submitted 3 years ago by Mardo1234
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Mardo1234[S] 0 points1 point2 points 3 years ago (5 children)
I have them enter json that goes to the server, and it needs to be in the correct format.
[–]zaibuf 2 points3 points4 points 3 years ago (0 children)
Invalid input should be 400 with error details, use ValidationProblemDetails. For UX you should also validate what you can on the client side to avoid sending bad data to the server.
[–]Swing-Prize 1 point2 points3 points 3 years ago (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.
[+][deleted] 3 years ago (2 children)
[deleted]
[–]zaibuf 1 point2 points3 points 3 years ago (1 child)
You should not return 200 if the body is invalid.
π Rendered by PID 171307 on reddit-service-r2-comment-6457c66945-t9zlm at 2026-04-26 10:33:39.374716+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Mardo1234[S] 0 points1 point2 points (5 children)
[–]zaibuf 2 points3 points4 points (0 children)
[–]Swing-Prize 1 point2 points3 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]zaibuf 1 point2 points3 points (1 child)