-
Notifications
You must be signed in to change notification settings - Fork 33
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
Extend ConnectivityStatus with UNKNOWN
#148
Comments
It seems, we have a similar issue against issue-138 |
hmm..mm @maxl2287 why wouldn't the API return a temporary error if it is unable to determine the connectivity status? |
There could be some potential use-cases for "Unknown" status:
|
Tricky question...
I tend to prefer 422 for our API as easier for my perspective to differentiate "business" valuable response. |
Thanks @bigludo7 for more insight on this and I would also prefer 422 in this case where it explicitly indicates a failure to process the request due to some unknown network issue. |
I also tend to agree with the 422. It should not be a successful response and we should not charge for something that is not client's fault. |
Yes ! |
We have already GENERIC_422_UNABLE_TO_PROVIDE_REACHABILITY_STATUS , that's for that case, isn't it? |
oh ! yes we have it already. Thanks. |
Can we close then this issue here? |
+1 |
Problem description
When the service tries to call the network to get some information, but the network cannot deliver either information about DATA nor SMS, then we cannot respond with "NOT_CONNECTED", but we need to communicate to the consumer that the network was not able to deliver a current status of connection.
Possible evolution
Add a new connectivity-status
UNKNOWN
The text was updated successfully, but these errors were encountered: