Consider HTTP Status Code 408 for timeout in extractStrictEntity

Hi,

I have a service that uses extractStrictEntity. Sometimes the timeout to extract the strict entity from the request is exceeded and this failure gets translated to 500 Internal Server Error.

I suggest it should be mapped to 408 Request Timeout in the default exception handler of Akka HTTP.

I am not 100% sure this would be the correct behavior. Opinions?

Cheers,
Sven

Hi Sven,

thanks for the suggestion. It sounds reasonable for me. Can you file a ticket at Github for that?

Johannes

Created a ticket here: https://github.com/akka/akka-http/issues/2548