Skip to content

Commit

Permalink
update status code to 204 when nothing to return.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyqin committed Oct 25, 2017
1 parent e1b3816 commit eb3b677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testcube/runner/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def pending(self, request):
serializer = self.get_serializer(pending_task)
return Response(serializer.data)
else:
return Response(data={}, status=404)
return Response(data={}, status=204)

@detail_route(methods=['get', 'post'])
def handler(self, request, pk=None):
Expand Down

0 comments on commit eb3b677

Please sign in to comment.