introduce dynect error handler as the api no longer returns errors as http 200

Thanks to dynect's Ryan Brickett for fixing the api so that it no longer sends errors as http 200 responses.