I think this is a property of cowboy: max_request_line_length.
max_request_line_length
It defaults to 8000 but to change it you can do it like this:
http: [protocol_options: [max_request_line_length: 10_000]]
Reference: