Fixes #2702: added doc about customizing error response format [skip ci]