API-Client-VSCode-Extension icon indicating copy to clipboard operation
API-Client-VSCode-Extension copied to clipboard

The request status error are not matching the actual error code

Open lub-bee opened this issue 2 years ago • 1 comments

I haven't try all of them, bug just some, and the message / error code are not matching

Tested and off :

  • 400 -> "Not found", expecting "Bad Request"
  • 401 -> "Not found", expecting "Unauthorized"
  • 403 -> "Not found", expecting "Forbidden"

Tested and ok :

  • 200
  • 201
  • 202
  • 404

lub-bee avatar Aug 31 '23 00:08 lub-bee

@lub-bee Thanks for letting me know. Would you like to try adding this feature? I noticed that in my code, if the request fails, all error messages are displayed as "Not found". I believe the code can be refactored to display the correct message depending on the error code from the API response.

unwls avatar Feb 22 '24 01:02 unwls