PLD: refactor error response