root / api / common.py @ 7584d408
History | View | Annotate | Download (313 Bytes)
1 |
#
|
---|---|
2 |
# Copyright (c) 2010 Greek Research and Technology Network
|
3 |
#
|
4 |
|
5 |
from synnefo.api.faults import BadRequest |
6 |
from synnefo.api.util import api_method |
7 |
|
8 |
|
9 |
@api_method()
|
10 |
def not_found(request): |
11 |
raise BadRequest('Not found.') |
12 |
|
13 |
@api_method()
|
14 |
def method_not_allowed(request): |
15 |
raise BadRequest('Method not allowed.') |