rack middleware that nips parse errors in the bud before they can manifest as internal server errors