shoudln't you return ``Unknown error ($code)`` here to be consistent ?