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

Handle exception for get device API when a device is not found #57

Closed
kushanb opened this issue Apr 7, 2021 · 0 comments
Closed

Handle exception for get device API when a device is not found #57

kushanb opened this issue Apr 7, 2021 · 0 comments

Comments

@kushanb
Copy link
Contributor

kushanb commented Apr 7, 2021

Description:

The server throws an exception when polled to check if the device to be registered has got added to the database causing the exception to be thrown multiple times in the server with the full stack trace. The API returns 500 Internal server error

Handle the exception from the API component and return a 404 HTTP status code for the API call to indicate that the device is not found.

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

No branches or pull requests

2 participants