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

Open
afekhar opened this issue Nov 21, 2024 · 1 comment
Open

Status codes meaning #2329

afekhar opened this issue Nov 21, 2024 · 1 comment
Labels
h: need triage This issue needs to be categorized s: bug Something isn't working

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
h: need triage This issue needs to be categorized s: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants