rest: capture only json errors