apple / servicetalk

A networking framework that evolves with your application
https://docs.servicetalk.io
Apache License 2.0
926 stars 181 forks source link

HTTP 413 - when compressed payloads are bigger than the allowed limit #1217

Open tkountis opened 4 years ago

tkountis commented 4 years ago

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

yanisderbikov commented 1 year ago

Hi. So it sounds interesting. Do you know how to find an server code for take a look and find the possible problems?