TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

999 Request Denied

66 pointsby franzeover 1 year ago

17 comments

soxocxover 1 year ago
&gt; When sending an HTTP GET or HEAD request to LinkedIn for a specific profile [...]<p>&gt; It will also be returned if there are too many HTTP requests in a single day. This is similar to the HTTP 429 Too Many Requests error message.<p>Similar? That is excatly what 429 was made for, or not? This is weird or just lazy.
评论 #38128171 未加载
评论 #38127791 未加载
评论 #38130876 未加载
评论 #38128189 未加载
Tepixover 1 year ago
The page explaining all the codes should make it clear that using status code 999 is a bad idea.<p>One reason why it&#x27;s bad is because it violates RFC 2616 (§6.1.1):<p><pre><code> The first digit of the Status-Code defines the class of response. The last two digits do not have any categorization role. There are 5 values for the first digit: - 1xx: Informational - Request received, continuing process - 2xx: Success - The action was successfully received, understood, and accepted - 3xx: Redirection - Further action must be taken in order to complete the request - 4xx: Client Error - The request contains bad syntax or cannot be fulfilled - 5xx: Server Error - The server failed to fulfill an apparently valid request</code></pre>
评论 #38129311 未加载
评论 #38132701 未加载
评论 #38127996 未加载
gostsamoover 1 year ago
This is super unprofessional. 999 means nothing, therefore it cannot be acted upon, therefore it is totally useless. Best description which I can come up with is &quot;I don&#x27;t like you and I won&#x27;t say why, because I don&#x27;t like you&quot;.<p>The expected client behavior is sending in return an empty http post request with wtf header and value &quot;I feel this server is passive aggressive towards me.&quot;
评论 #38128213 未加载
评论 #38128273 未加载
评论 #38128003 未加载
janfoehover 1 year ago
I am wondering if it might have been chosen as a joke... 999 is a homonym for the German &quot;nein, nein, nein&quot; (no, no, no), which is rather fitting for a &quot;go away&quot; status code.
评论 #38128282 未加载
评论 #38128364 未加载
pull_my_fingerover 1 year ago
Nginx has a similar unofficial code 444 - which just closes without any other information and it&#x27;s super helpful. 999 OTOH feels like you&#x27;re just too lazy to use the correct response though.<p>Edit: I should not that while you&#x27;re using it in your Nginx config, you&#x27;re not _actually_ returning it to the client. That&#x27;s a fairly important distinction, and I think makes it more appropriate than the 999 thing.
Waterluvianover 1 year ago
I’m going to bet that every 999 could be defined more accurately using an existing code.<p>For me, if the server cannot specifically tell you what kind of error happened, it’s by definition a 500.<p>My API is internal, but it’s been nice to consider, “all 500-level errors are my team’s problem to fix or represent more accurately as a 400-level.”
评论 #38127800 未加载
评论 #38127862 未加载
colonwqbangover 1 year ago
&gt; 499 Please Spoof User Agent In A More Believeable Manner
alpaca128over 1 year ago
Looks like it&#x27;s the catch-all &quot;I don&#x27;t want to look up the proper status code for this&quot; code.
jto1218over 1 year ago
Reminds me of a similar one that only Shopify uses <a href="https:&#x2F;&#x2F;http.dev&#x2F;430" rel="nofollow noreferrer">https:&#x2F;&#x2F;http.dev&#x2F;430</a><p>It says it’s deprecated but we still get them from their API from time to time.
benjlcoxover 1 year ago
I’ve always used 418 for this kind of thing
评论 #38127684 未加载
评论 #38127799 未加载
评论 #38127899 未加载
评论 #38127683 未加载
评论 #38147680 未加载
评论 #38128140 未加载
评论 #38127675 未加载
mxuribeover 1 year ago
I&#x27;ve never realized that http status 999 was a thing. I&#x27;ve often used 401 to tell user something similar to &quot;denied&quot;...which i get is different in that &quot;unauthorized&quot; (for 401) is the <i>browser</i> telling the user, while i suppose 999 would be the server telling the client to tell the user a generic &quot;denied&quot;...so there&#x27;s a difference there, but a little nuanced i suppose. I guess TIL.
评论 #38127780 未加载
评论 #38130533 未加载
评论 #38127832 未加载
38over 1 year ago
I am getting 999 even in a browser, what the fuck<p><a href="http:&#x2F;&#x2F;www.linkedin.com&#x2F;in&#x2F;filwiese" rel="nofollow noreferrer">http:&#x2F;&#x2F;www.linkedin.com&#x2F;in&#x2F;filwiese</a>
chrismorganover 1 year ago
This is just <i>wrong and bad</i>.<p>The uses described should very clearly be 403 Forbidden where it’s refusing to respond based on user-agent, and 429 Too Many Requests where it’s rate limiting.<p>The spec says &lt;<a href="https:&#x2F;&#x2F;www.rfc-editor.org&#x2F;rfc&#x2F;rfc9110#section-15-6" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.rfc-editor.org&#x2F;rfc&#x2F;rfc9110#section-15-6</a>&gt;:<p>&gt; <i>Values outside the range 100..599 are invalid. Implementations often use three-digit integer values outside of that range (i.e., 600..999) for internal communication of non-HTTP status (e.g., library errors). A client that receives a response with an invalid status code SHOULD process the response as if it had a 5xx (Server Error) status code.</i><p>So, the spec declares it invalid, and its suggested handling yields the wrong semantics (server rather than client error).<p>Given the notes they have on things like 430, I’m astonished at them not noting the problems with this code.
评论 #38128347 未加载
评论 #38128361 未加载
评论 #38138543 未加载
PaulAJover 1 year ago
Has anyone pointed out that in the UK 999 is the emergency number (like 911 in the US). So &quot;999 Request Denied&quot; sounds like a public safety issue to someone who doesn&#x27;t speak tech. Make it 998 if you must.
评论 #38132438 未加载
jbverschoorover 1 year ago
Might as well returned Status: &#x2F;dev&#x2F;null
pachicoover 1 year ago
Just... Why?
wintorezover 1 year ago
What a beautiful website!