Gifted Minecraft
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.world to Programmer Humor@programming.dev · 3 months ago

Yes, But...

lemmy.ml

message-square
75
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
756

Yes, But...

lemmy.ml

cm0002@lemmy.world to Programmer Humor@programming.dev · 3 months ago
message-square
75
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
  • bananoidandroid@feddit.nu
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    3 months ago

    deleted by creator

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      ·
      edit-2
      3 months ago

      A 2xx means success to its requester. If you have an error in step 6 out of 13 that breaks the resource action, you shouldn’t be returning a success.

      You might argue what to return and what kind of information to include in the response (like tracking numbers), but it shouldn’t be a 2xx and I don’t see how a misleading 200 would be more helpful than a 400 bad request.

      • bananoidandroid@feddit.nu
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        3 months ago

        deleted by creator

        • Eager Eagle@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          ·
          3 months ago

          and to just send “Bad request” when it’s a good request - does not make sense

          That’s when you use a 5xx status, then. The client doesn’t care how many other services you reach out to in order to fulfill their request. A 5xx code also covers failures in other parts of the system.

          • bananoidandroid@feddit.nu
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            2
            ·
            edit-2
            3 months ago

            deleted by creator

            • Pup Biru@aussie.zone
              link
              fedilink
              English
              arrow-up
              6
              ·
              edit-2
              12 days ago

              Removed by mod

              • bananoidandroid@feddit.nu
                link
                fedilink
                English
                arrow-up
                1
                arrow-down
                1
                ·
                edit-2
                3 months ago

                deleted by creator

                • Pup Biru@aussie.zone
                  link
                  fedilink
                  English
                  arrow-up
                  3
                  ·
                  edit-2
                  12 days ago

                  Removed by mod

                  • bananoidandroid@feddit.nu
                    link
                    fedilink
                    English
                    arrow-up
                    1
                    ·
                    edit-2
                    3 months ago

                    deleted by creator

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 452 users / day
  • 4.06K users / week
  • 9.94K users / month
  • 19.7K users / 6 months
  • 1 local subscriber
  • 24.4K subscribers
  • 1.44K Posts
  • 47.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org