Funny way to learn about HTTP client error codes

Funny way to learn about HTTP client error codes

I created this joke to illustrate some of the common HTTP status codes that we use in our services to indicate the errors on the client side.?


Imagine that you have a shared bank locker. The bank requires you to complete a form for any locker operations, so you fill it up and approach the bank officer.

Bank Officer: 400 Bad Request. You have left out some of the mandatory form fields, especially the locker number is blank.


You fill in all the fields this time and pass it again.?

Bank Officer: 401 Unauthorized. The customer ID entered in the form is not in our records.


You verify and correct the customer ID.?

Bank Officer: 401 Unauthorized. Your signature does not match the one we have on record.


You recall the sign you used and fill in another form with an adjusted signature.

Bank Officer: 404 Not Found. The locker number does not exist.


You try to remember and update the form with a new guess for the locker number.

Bank Officer: 403 Forbidden. This locker number exists, but you do not own it.


You finally call home to get the correct number and update the form again.

Bank Officer: 405 Method Not Allowed. You stated in the form that you also want to upgrade the locker to a bigger one. That service is not available for the type of locker you have.


You agree and change your request to only get access to open the locker.?

Bank Officer: 409 Conflict. There is already a person in the locker room right now.


You wait for some time and reach out to the officer again.

Bank Officer: 429 Too Many Requests. Our records show that you have already accessed the locker twice this week. You have hit our weekly limit. Please Retry-After a day.


You go to the bank the next day.

Bank Officer: 410 Gone. This locker was closed by the other owner. Goodbye!

要查看或添加评论,请登录

Jatin Sanghvi的更多文章

  • So, you say, you need Kubernetes?

    So, you say, you need Kubernetes?

    Disclaimer: I have been working on and off on Kubernetes for the past three years. I have also read a few books on…

  • An argument against video recordings

    An argument against video recordings

    The online meetings are having the recording feature since a decade but rarely the meetings used to get recorded in the…

  • Once in a 'software lifetime' mistakes

    Once in a 'software lifetime' mistakes

    I think in the lifetime of any software application development, there will be instances when the problem would look…

  • Littering with String Literals (Keep it stupid simple - Part 1)

    Littering with String Literals (Keep it stupid simple - Part 1)

    In this series of posts, I will illustrate some of the programming anti-patterns I see over and over during code…

  • One Engineering Model

    One Engineering Model

    If you have read my earlier posts, you may have understood that I always think and write against the norm. I do not…

    2 条评论
  • Geeks and their mental models

    Geeks and their mental models

    How do you tell whether a person is a geek? Is it by their interest in certain niche subject areas or by their love…

    1 条评论
  • Rubik's cube and software projects

    Rubik's cube and software projects

    Very often I notice a trend that if a project involving work W is scheduled to be completed in time T, then managers…

    3 条评论

社区洞察

其他会员也浏览了