149
ng1905
6y

"there's a problem with your API"
Me: "why?"
"I get no data"
Me: "what response code are you getting?"
"405 - Method not allowed. But only on the /version endpoint"
Me: "Soo... What request are you sending?"
"POST"

WHY THE FUCK WOULD YOU SEND A POST REQUEST TO AN ENDPOINT THAT **GETS** THE VERSION OF MY API???!!!!

Me: "Read the documentation. It's there for a reason"

Comments
  • 33
    Yes, the developer wants to upgrade your API by bumping up the version number. I say, you should allow that POST call immediately.
  • 16
    So method not allowed didn't ring a bell for him 🤔
  • 14
    If he can’t even understand method not allowed error then he should stay away from your API
  • 3
    it's the JSON generation (of people)

    everything's a POST, the actual info about what you're trying to do is in a JSON string in its body.

    the url is just a pipe where you stuff all of it into.
  • 4
    @gitpush

    it's because the 405 wasn't returned in a response in an ErrCode property of a json stringobject, but actual http code.

    i betcha if it were the former, he would try to google it and would maybe even find out what's it supposed to mean.
  • 1
    // I gave you 69.
  • 1
    @Midnigh-shcode is this hell?
  • 1
    @SanitizedOutput send help 😂
  • 1
    @vish
    In that case it would be PUT instead of POST.
  • 2
    @Midnigh-shcode why wouldn't it show the correct error code in http status code, I don't understand why devs return that code in response body instead of the correct place ....
  • 1
    @gitpush http 304, see my comment above the one where i tagged you ;)
  • 1
  • 1
    @devTea APIs in general.
Add Comment