akka/akka-http

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

Open

#378 aperta il 8 ott 2016

Vedi su GitHub
 (6 commenti) (1 reazione) (0 assegnatari)Scala (598 fork)batch import
1 - triagedhelp wantedt:docs

Metriche repository

Star
 (1311 star)
Metriche merge PR
 (Merge medio 1g 10h) (2 PR mergiate in 30 g)

Descrizione

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.

Guida contributor