Hi Tomasz, I think akka.http.ParserSettings.withCustomStatusCodes is what you're looking for. Its spec is here <https://github.com/akka/akka/blob/release-2.3-dev/akka-http-core/src/test/scala/akka/http/impl/engine/parsing/ResponseParserSpec.scala#L60-L69> .
HTH André On Thursday, August 20, 2015 at 11:10:55 AM UTC+2, Tomasz Kogut wrote: > > Hello, > > this is my first post here so let me start with a big "Hello" to everyone > in this fantastic community :) > > As for the question I have a server to which I send request using > akka-http. The problem this is a Microsoft IIS that is using rare response > code: > > HTTP/1.1 440 ..Content-Length: 48..Content-Type: application/json; > charset=utf-8..Server: Microsoft-HTTPAPI/2.0..Date: Thu, 20 Aug 2015 > 09:01:11 GMT..Connection: close....{.. "Message": "Ticket expired. Or > invalid."..} > > this causes akka to throw exception: > akka.http.scaladsl.model.IllegalResponseException: Illegal response status > code > > and of course fails the Future so I don't really know what was the cause > of the failure. Is there a way to somehow overcome this limitation? > > > -- > BR, > Tomasz > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.