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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always return statusCode property. #2234

Open
WaleedJubeh opened this issue Apr 22, 2024 · 0 comments
Open

Always return statusCode property. #2234

WaleedJubeh opened this issue Apr 22, 2024 · 0 comments

Comments

@WaleedJubeh
Copy link

WaleedJubeh commented Apr 22, 2024

馃殌 Feature Proposal

I noticed that when an error thrown from the client, the error response always contains the statusCode, while if the query successfully executed, I have to pass the meta property to read the statusCode. I see that as unconsistancy in the design.

I'm proposing to return always the statusCode when the query successfully executed. It's light and important value and it will not affect the transfer response time.

Currently I'm forced to let the .then return an object contains the statusCode hard coded.

Motivation

In my company we are upgrading from ES7 to ES8, and we saw the breaking change where the meta property should be passed in order to read the response values such as statusCode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants