return 404 error on missing action
This commit is contained in:
parent
101210e4d4
commit
24f83e91f2
2 changed files with 5 additions and 0 deletions
|
|
@ -272,6 +272,9 @@ class BaseResponse(_TemplateEnvironmentMixin):
|
|||
headers['status'] = str(headers['status'])
|
||||
return status, headers, body
|
||||
|
||||
if not action:
|
||||
return 404, headers, ''
|
||||
|
||||
raise NotImplementedError(
|
||||
"The {0} action has not been implemented".format(action))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue