Hi,
We are using akka-http 1.0 to implement our REST API and would like to set
a limit to the max body size the user can send over REST. We have
configured it in the akka http configuration as 10MB as following:
http {
server {
...
parsing {
max-content-length = 10m
}
}
}
The problem is that the client never receives a response from the server
and remains blocked waiting for a response. Nevertheless the following will
be logged by the ActorSystem:
WARN a.a.ActorSystemImpl akka.actor.ActorSystemImpl(TheSystemActorName) -
Illegal request, responding with status '413 Request Entity Too Large':
Request Content-Length 10485761 exceeds the configured limit of 10485760
Is there a way to retrieve the 413 status code back to the client or to
catch this exception and explicitly set the status code in the request
context?
Thx.
--
>>>>>>>>>> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.