akka/akka-http

Allow customize response that is generated in akka http when a request timeout is exceed

Open

#378 geöffnet am 8. Okt. 2016

Auf GitHub ansehen
 (6 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Scala (598 Forks)batch import
1 - triagedhelp wantedt:docs

Repository-Metriken

Stars
 (1.311 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 10h) (2 gemergte PRs in 30 T)

Beschreibung

Issue by matheuslima Saturday Oct 08, 2016 at 16:27 GMT Originally opened as https://github.com/akka/akka/issues/21638


Today, the response generated looks like:

    HttpResponse(StatusCodes.ServiceUnavailable, entity = "The server was not able " +
      "to produce a timely response to your request.\r\nPlease try again in a short while!")

I need add some headers to all responses generated from my server, but the directive respondWithHeaders seems not work with timed out responses, due the fact the default response is injected by akka http server.

Contributor Guide