• 0 Posts
  • 28 Comments
Joined 2 years ago
cake
Cake day: July 9th, 2023

help-circle


  • You can send 4xx errors yourself too. If the client needs to change something about the request, that’s a 4xx, like 400 Bad Request. If the server has an error and it’s not the client’s fault, that’s a 5xx like 502 Bad Gateway.

    The wikipedia listing of all HTTP codes is quite helpful. People also forget you can send a custom response body with a 4xx or 5xx error. So you can still make a custom JSON error message.






  • xthexder@l.sw0.comtoMemes@lemmy.mlTrickflation
    link
    fedilink
    arrow-up
    4
    ·
    21 days ago

    Yeah, there’s an awesome video on aluminum drink cans from TheEngineerGuy on YouTube. The ideal shape for holding pressure with minimal material is a sphere, but there’s 2 problems with that: They roll, and can’t be packed as efficiently as cylinders.



  • xthexder@l.sw0.comtoMemes@lemmy.mlTrickflation
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    21 days ago

    If anything the taller cylinder will use more aluminum for the same volume, so they’re kinda shooting themselves in the foot here with aluminum and steel tariffs, lol

    Seems pretty clear the only reason for this was to change the price without as many people noticing.