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

Improve Status Code Handling for Missing Resources #279

Open
philgenb opened this issue Sep 2, 2024 · 0 comments
Open

Improve Status Code Handling for Missing Resources #279

philgenb opened this issue Sep 2, 2024 · 0 comments
Labels
enhancement New feature or request Not planned

Comments

@philgenb
Copy link
Contributor

philgenb commented Sep 2, 2024

Currently, the status codes used in various methods could be improved for better accuracy. For example, a 404 status code is often returned when a timesheet or similar resource is not found. However, since the operation was executed correctly, but no resource was found, a 204 (No Content) status code would be more appropriate.

Using 400-series status codes results in error messages in the console due to how the Axios package handles them, and these cannot be easily suppressed. This leads to unnecessary error logs for cases where the operation is successful but returns no content.

@philgenb philgenb added Not planned enhancement New feature or request labels Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Not planned
Projects
None yet
Development

No branches or pull requests

1 participant