Return 400 error for pacts with invalid JSON