Spaces:
Build error
Build error
Download tecnicas/utils/personal_errors.py from chartManD/cata_system: direct link, hf CLI and curl.
- Browser
- Download file 273 Bytes
-
https://huggingface.co/spaces/chartManD/cata_system/resolve/main/tecnicas/utils/personal_errors.py
- Command line
-
hf download hf://spaces/chartManD/cata_system/tecnicas/utils/personal_errors.py
-
curl -L -o personal_errors.py https://huggingface.co/spaces/chartManD/cata_system/resolve/main/tecnicas/utils/personal_errors.py
273 Bytes
| from django.http import JsonResponse | |
| def general_error(message="informacion incorrecta"): | |
| result = {"error": message} | |
| return JsonResponse(result) | |
| def controller_error(message="ha ocurrido un error inesperado"): | |
| result = {"error": message} | |
| return result | |