Revision 420c24ee

b/snf-django-lib/snf_django/lib/api/faults.py
35 35
"""Common API faults."""
36 36

  
37 37

  
38
def camelCase(s):
38
def camel_case(s):
39 39
    return s[0].lower() + s[1:]
40 40

  
41 41

  
......
44 44
        Exception.__init__(self, message, details, name)
45 45
        self.message = message
46 46
        self.details = details
47
        self.name = name or camelCase(self.__class__.__name__)
47
        self.name = name or camel_case(self.__class__.__name__)
48 48

  
49 49

  
50 50
# 2xx
......
61 61
    code = 401
62 62

  
63 63

  
64
class ResizeNotAllowed(Fault):
65
    code = 403
66

  
67

  
68 64
class Forbidden(Fault):
69 65
    code = 403
70 66

  

Also available in: Unified diff