cosmicds / cds-api

API for accessing the CosmicDS database
GNU General Public License v3.0
0 stars 3 forks source link

Give a 404 from measurements endpoint if student doesn't exist #118

Closed Carifio24 closed 2 months ago

Carifio24 commented 2 months ago

Currently there's no way to determine whether an empty measurement response means "this student doesn't exist" or "they do exist, but they have no measurements". This PR updates the status code to be a 404 in the former case so that we can make that distinction.