Ejemplo n.º 1
0
class NotFound(SdsException):
    message = _("Resource could not be found.")
    code = 404
    safe = True
Ejemplo n.º 2
0
class DeviceUnavailable(Invalid):
    message = _("The device in the path %(path)s is unavailable: %(reason)s")
Ejemplo n.º 3
0
class InvalidUUID(Invalid):
    message = _("Expected a uuid but received %(uuid)s.")
Ejemplo n.º 4
0
class AdminRequired(NotAuthorized):
    message = _("User does not have admin privileges")
Ejemplo n.º 5
0
class ServiceUnavailable(Invalid):
    message = _("Service is unavailable at this time.")
Ejemplo n.º 6
0
class HostBinaryNotFound(NotFound):
    message = _("Could not find binary %(binary)s on host %(host)s.")
Ejemplo n.º 7
0
class MalformedRequestBody(SdsException):
    message = _("Malformed message body: %(reason)s")
Ejemplo n.º 8
0
class InvalidContentType(Invalid):
    message = _("Invalid content type %(content_type)s.")
Ejemplo n.º 9
0
class InvalidHost(Invalid):
    message = _("Invalid host: %(reason)s")
Ejemplo n.º 10
0
class InvalidResults(Invalid):
    message = _("The results are invalid.")
Ejemplo n.º 11
0
class InvalidInput(Invalid):
    message = _("Invalid input received: %(reason)s")
Ejemplo n.º 12
0
class SfJsonEncodeFailure(SdsException):
    message = _("Failed to load data into json format")
Ejemplo n.º 13
0
class Invalid(SdsException):
    message = _("Unacceptable parameters.")
    code = 400
Ejemplo n.º 14
0
class PolicyNotAuthorized(NotAuthorized):
    message = _("Policy doesn't allow %(action)s to be performed.")
Ejemplo n.º 15
0
class ServiceNotFound(NotFound):
    message = _("Service %(service_id)s could not be found.")
Ejemplo n.º 16
0
class InvalidParameterValue(Invalid):
    message = _("%(err)s")
Ejemplo n.º 17
0
class HostNotFound(NotFound):
    message = _("Host %(host)s could not be found.")
Ejemplo n.º 18
0
class InvalidAuthKey(Invalid):
    message = _("Invalid auth key: %(reason)s")
Ejemplo n.º 19
0
class FileNotFound(NotFound):
    message = _("File %(file_path)s could not be found.")
Ejemplo n.º 20
0
class InvalidConfigurationValue(Invalid):
    message = _('Value "%(value)s" is not valid for '
                'configuration option "%(option)s"')
Ejemplo n.º 21
0
class ConfigNotFound(NotFound):
    message = _("Could not find config at %(path)s")
Ejemplo n.º 22
0
class NotAuthorized(SdsException):
    message = _("Not authorized.")
    code = 403