When a compressed payload is bigger than the acceptable limit the compression codec implementations throw an exception. Currently, this exception will be mapped to 500 on the server-side. Instead, we can catch that exception and respond with 413, according to the RFC: https://tools.ietf.org/html/rfc7231#section-6.5.11
When a compressed payload is bigger than the acceptable limit the compression codec implementations throw an exception. Currently, this exception will be mapped to 500 on the server-side. Instead, we can catch that exception and respond with 413, according to the RFC: https://tools.ietf.org/html/rfc7231#section-6.5.11