You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A quick note is that no other endpoint is handling errors by returning the correct HTTP status code. For example, the the course endpoint does not return the correct HTTP status code if the year is not found.
I added a response/errors.py folder in order to report a 404 not found error with a custom message for the course unit id not being found (`e.g. the first() method returns None)
This folder is a start of an attempt of introducing that kind of behaviour to our API.
A quick note is that no other endpoint is handling errors by returning the correct HTTP status code. For example, the the
course
endpoint does not return the correct HTTP status code if the year is not found.I added a
response/errors.py
folder in order to report a 404 not found error with a custom message for the course unit id not being found (`e.g. the first() method returns None)This folder is a start of an attempt of introducing that kind of behaviour to our API.
Originally posted by @tomaspalma in #78 (comment)
The text was updated successfully, but these errors were encountered: