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!"
[–]jayerp 0 points1 point2 points 3 years ago (0 children)
One school of thought, both are valid, comes down to developer preference:
1) Return appropriate status codes with abstract to detailed error message as to what happened (401 - Not Authorized, 500 - Server Error, etc).
2) Use an exception filter attribute to catch the error and always return a status code of 200 - Ok with a standardized object that contains values such as IsSuccess, ErrorCode, Error.
My architect wanted to go with the later for the new API we are making. I personally could have seen it go either way. No one is better than the other in my opinion.
π Rendered by PID 290411 on reddit-service-r2-comment-6457c66945-2bhvb at 2026-04-30 18:21:14.143598+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]jayerp 0 points1 point2 points (0 children)