Class to wrap errors produced when connecting to the Marigold platform. Extends Error with a status code that can be passed up.