How to override the RequestEntityTooLarge/413 default response from spray-can?

245 views
Skip to first unread message

Fernando Romero

unread,
Oct 31, 2016, 8:08:12 AM10/31/16
to spray.io User List
Hello. I have been trying to override the response spray-can is sending back when there is a RequestEntityTooLarge error. Directives like mapResponse at routing level do not work since this is done at spray-can parsing. I need to return a json message when this happens.

Thanks in advance.
Reply all
Reply to author
Forward
0 new messages