My server is written using spray-can. Let's say inside the receive function I handle Timeout message like this:
case Timedout( HttpRequest(m,u,_,_,_)) =>
sender ! HttpResponse( status = 500, entity = s"can't process $u request timedout" )
Is it possible that spray-can itself might response with 504 error ?