generated from Real-Dev-Squad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 264
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
API Returns 200 OK Status for Non-Existent Task Instead of 404 Not Found #2290
Comments
10 tasks
I would like to work on this |
This is the issue, I have reproduced in dashboard site Screen_Recording_2024-12-07_at_10.53.38_PM.mov |
@Akshat187 Any updates? |
I'm working on this already @Xundan91 |
10 tasks
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
The backend API
https://api.realdevsquad.com/taskRequests/:id
returning a 200 OK status code along with the message"Task request returned successfully"
even when the requested task ID does not exist. This is misleading because it suggests the request was successful, while the task is not actually found.Expected Behavior
The message "Task request returned successfully" should only be returned when a valid task is found.
Current Behavior
Screenshots
Reproducibility
Steps to Reproduce
https://api.realdevsquad.com/taskRequests/:id
with a task ID that does not exist200 OK
status code with the message"Task request returned successfully"
.Severity/Priority
Additional Information
Checklist
The text was updated successfully, but these errors were encountered: