Commit 3b2b6331 authored by Vincent Le gallic's avatar Vincent Le gallic

Some status codes

parent 77b61795
......@@ -95,7 +95,7 @@ def do_conso(request):
consodata = request.POST["consodata"]
consodata = [[int(i) for i in triplet.split(",")] for triplet in consodata[1:-1].split("),(")]
return HttpResponse(u'"Bad request"')
return HttpResponse(u'"Bad request"', status=400)
success, sock_ou_response = nk.socket_still_alive(request)
if success:
sock = sock_ou_response
......@@ -113,7 +113,7 @@ def get_photo(request, idbde=None):
idbde = int(idbde)
except Exception as e:
return HttpResponse("Bad Request")
return HttpResponse("Bad Request", status=400)
# On appelle alors la fonction standard
success, sock_ou_response, variables_standard = utilities.standard_page(request, socket=True)
if success:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment