class InvalidHost(Invalid): message = _("Invalid host: %(reason)s")
class InvalidInput(Invalid): message = _("Invalid input received: %(reason)s.")
class InvalidContentType(Invalid): message = _("Invalid content type %(content_type)s.")
class InvalidRequest(Invalid): message = _("The request is invalid.")
class InvalidResults(Invalid): message = _("The results are invalid.")
class Conflict(DolphinException): message = _("%(err)s") code = 409
class Invalid(DolphinException): message = _("Unacceptable parameters.") code = 400
class AdminRequired(NotAuthorized): message = _("User does not have admin privileges.")
class PolicyNotAuthorized(NotAuthorized): message = _("Policy doesn't allow %(action)s to be performed.")
class NotAuthorized(DolphinException): message = _("Not authorized.") code = 403
class BadConfigurationException(DolphinException): message = _("Bad configuration: %(reason)s.")
class NetworkBadConfigurationException(NetworkException): message = _("Bad network configuration: %(reason)s.")
class NetworkBindException(DolphinException): message = _("Exception due to failed port status in binding.")
class NetworkException(DolphinException): message = _("Exception due to network failure.")