-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description of the Bug
When making an invalid API request or a request for a course id that doesn't exist, it returns a response code of 500.
Reproduction Steps
Send a request to https://courses-api.csclub.org.au/subjects
or https://courses-api.csclub.org.au/courses/aaa
.
Expected Behaviour
When making an invalid API request, it should return a response code of 400 instead of 500. Similarly, requests with a non-existing course id should return 404 instead of 500.
Additional Notes
For some reason, restarting the Docker container temporarily fixes this issue.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done