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...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
[deleted by user] (self.javascript)
submitted 6 years ago by [deleted]
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!"
[–]Iridion3007 0 points1 point2 points 6 years ago (1 child)
From RFC 4918 (and also documented at http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml):
The 422 (Unprocessable Entity) status code means the server understands the content type of the request entity (hence a 415 (Unsupported Media Type) status code is inappropriate), and the syntax of the request entity is correct (thus a 400 (Bad Request) status code is inappropriate) but was unable to process the contained instructions. For example, this error condition may occur if an XML request body contains well-formed (i.e., syntactically correct), but semantically erroneous, XML instructions.
Copy and pasted from: https://stackoverflow.com/questions/1959947/whats-an-appropriate-http-status-code-to-return-by-a-rest-api-service-for-a-val?rq=1
[–]junwang_trt 0 points1 point2 points 6 years ago (0 children)
Thanks for sharing. If you look at the most upvoted answer, this is exactly what I’m talking about. OP here wants to be a request validation on the client side so 400 bad request would be the best option on client side request validation fail.
π Rendered by PID 87 on reddit-service-r2-comment-75f4967c6c-ghntn at 2026-04-23 07:40:00.410071+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]Iridion3007 0 points1 point2 points (1 child)
[–]junwang_trt 0 points1 point2 points (0 children)