Spaces:
Sleeping
Sleeping
File size: 273 Bytes
24bdb4d |
1 2 3 4 5 6 7 8 9 10 11 12 |
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
|