Error response

This commit is contained in:
jain
2023-08-21 19:09:44 +05:30
parent e380f3f6ab
commit 214566ec8f
2 changed files with 2 additions and 2 deletions

View File

@ -337,7 +337,7 @@ class ApproveTaskAPIView(viewsets.ModelViewSet):
serializer.save()
return custom_response(SUCCESS_CODE['3026'], response_status=status.HTTP_200_OK)
else:
return custom_response(ERROR_CODE['2038'], response_status=status.HTTP_400_BAD_REQUEST)
return custom_error_response(ERROR_CODE['2038'], response_status=status.HTTP_400_BAD_REQUEST)
except Exception as e:
return custom_error_response(str(e), response_status=status.HTTP_400_BAD_REQUEST)