24 Matching Annotations
  1. Jun 2021
  2. May 2021
    1. The job of this function is to return a { status, headers, body } object representing the response, where status is an HTTP status code: 2xx — successful response (default is 200) 3xx — redirection (should be accompanied by a location header) 4xx — client error 5xx — server error
  3. Feb 2021
    1. Now this probably won't make difference in the real world (e.g. because the exit codes are not portable and on top of that not always unambiguous as discussed in Default exit code when process is terminated?)
    1. However, because so many shells follow that convention of having 128 + signal_number, programs know to avoid using those values above 128 for their exit code (or when they do exit(130), it's to report the death of a child that dies of a signal 2 like some shells do under some circumstances).
  4. Nov 2020
    1. All browers handle 302 incorrectly. Chrome 30, IE10. It became the de facto incorrect implementation; that cannot be changed because so many web-sites issue mistakenly issue 302. In fact ASP.net MVC incorrectly issues 302, depending on the fact that browsers handle it incorrectly.
  5. Aug 2020
    1. Yeah, so I believe what we want is.. If an action has no templates defined at all, AND it has no respond_to { ... } block, then it should do a 204 If an action has certain templates defined, AND it has no respond_to { ... } block, then it should do a 406 for formats with no templates If an action has a respond_to { ... } block, then it should do a 406 for formats not in the list
  6. Apr 2020
    1. “What other framework has integrated support for 786 TRY IT NOW ?”

      I couldn't find documentation of what this is referring to. Is it a custom HTTP status code?

      https://falcon.readthedocs.io/en/stable/api/status.html mentions

      HTTP status line, e.g. ‘748 Confounded by Ponies’. but not 786.

  7. Dec 2019
    1. I understand that GitHub uses "Not Found" where it means "Forbidden" in some circumstances to prevent inadvertently reveling the existence of a private repository. Requests that require authentication will return 404 Not Found, instead of 403 Forbidden, in some places. This is to prevent the accidental leakage of private repositories to unauthorized users. --GitHub This is a fairly common practice around the web, indeed it is defined: The 404 (Not Found) status code indicates that the origin server did not find a current representation for the target resource or is not willing to disclose that one exists. --6.5.4. 404 Not Found, RFC 7231 HTTP/1.1 Semantics and Content (emphasis mine)
  8. Sep 2019
    1. This slave code shows that this piece of legislation was used to allow slave owners to promote the spread of christianity while still maintaining ownership over their slaves. Also perhaps a select view people were baptizing slaves in order to try to circumvent laws and this was a way to prevent this from happening. This also perpetuates the idea that identity of being slave is passed down via the mother and this cannot be changed.

  9. Sep 2018
  10. Jun 2017
  11. Sep 2016