Projet

Général

Profil

Development #10974

base adresse : prendre en compte le fait que le service puisse être down

Ajouté par Frédéric Péters il y a presque 8 ans.

Statut:
Nouveau
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
18 mai 2016
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:

Description

(et retourner genre une erreur 500, comme maintenant…)

 $ http 'http://api-adresse.data.gouv.fr/search/?q=8 bd du port'
HTTP/1.1 500 Internal Server Error
Connection: keep-alive
Content-Length: 141
Content-Type: text/html
Date: Wed, 18 May 2016 06:43:48 GMT
Server: nginx/1.6.2

<html>
  <head>
    <title>Internal Server Error</title>
  </head>
  <body>
    <h1><p>Internal Server Error</p></h1>

  </body>
</html>

Dans cette situation → 503 (?).

Formats disponibles : Atom PDF