• 0 Posts
  • 54 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
    ·
    19 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.