An application running on Pivotal Cloud Foundry returns HTTP 400 error with the following body for some requests.
<html><body><h1>400 Bad request</h1> Your browser sent an invalid request. </body></html>
There is a buffer limit for HTTP headers in haproxy that is used in Elastic Runtime. By default it's configured with 16KB. If the request has a big header, for example with cookies, haproxy responds with the 400 error as shown above.