test for oversized payloads

This adds the custom error defined in api.md for requests that are too large (code:413 errno:113) and a test-case.

This is related to #216

The default `maxBytes` of a payload is 1MB. We may want to tune this by endpoint.