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

Sweeten GET operations by returning NULL instead of throwing. #76

Open
chadxz opened this issue May 21, 2018 · 0 comments
Open

Sweeten GET operations by returning NULL instead of throwing. #76

chadxz opened this issue May 21, 2018 · 0 comments
Labels

Comments

@chadxz
Copy link
Owner

chadxz commented May 21, 2018

Typically when you issue a GET to grab a specific instance of something, as a developer, you want either the thing, or null, so you can do something like if(thing) doSomething(); afterwards.

Today if you get back a 404 from the server on an operation like GET /applications/{applicationName}, it will cause the promise to throw. Ideally this would instead resolve the promise with null.

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

No branches or pull requests

1 participant