Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status codes meaning #2329

Closed
afekhar opened this issue Nov 21, 2024 · 2 comments
Closed

Status codes meaning #2329

afekhar opened this issue Nov 21, 2024 · 2 comments
Labels
i: wontfix This will not be worked on

Comments

@afekhar
Copy link

afekhar commented Nov 21, 2024

Package

dio

Version

5.7.0

Operating-System

Android

Adapter

Default Dio

Output of flutter doctor -v

No response

Dart Version

No response

Steps to Reproduce

Post false credentials to sign-in api en

Expected Result

The status code of 401 has the following meaning: : "unauthorized access due to invalid or missing credentials"

Actual Result

The status code of 401 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"

@afekhar afekhar added h: need triage This issue needs to be categorized s: bug Something isn't working labels Nov 21, 2024
@AlexV525
Copy link
Member

We use the same message for code [400, 500). Could you suggest a better description for them all? A specific message for each code might be overwhelmed.

cc @ueman

@AlexV525
Copy link
Member

Closing as intended. We don't want to reference all status code meanings here which is redundant. The MDN link has been provided through the exception.

@AlexV525 AlexV525 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2024
@AlexV525 AlexV525 added i: wontfix This will not be worked on and removed h: need triage This issue needs to be categorized s: bug Something isn't working labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i: wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants