Skip to content

Commit

Permalink
Merge pull request #285 from uw-it-aca/bug/course-not-found-response
Browse files Browse the repository at this point in the history
appropriate status for resources not found
  • Loading branch information
mikeseibel authored Apr 4, 2024
2 parents 3546852 + 9b9493b commit f7ea492
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions coursedashboards/views/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ def data_error(self):
"Data not available due to an error")

def term_not_found(self):
return HttpResponse(content="Term not found!", status=543)
return HttpResponse(content="Term not found", status=404)

def course_not_found(self):
return HttpResponse(content="Course not found!", status=543)
return HttpResponse(content="Course not found", status=404)

def course_offering_not_found(self):
return HttpResponse(content="Course Offering not found!", status=543)
return HttpResponse(content="Course Offering not found", status=404)


class UpStreamErrorException(APIException):
Expand Down

0 comments on commit f7ea492

Please sign in to comment.