Use 201 for successfule route append response.
This commit is contained in:
1 parent
6257db82dd
commit
443aa0f39c
1 file changed
+1
-1
+1
-1
@@ -304,7 +304,7 @@ def append_route(app):
|
||||
return web.Response(status=422, reason="Invalid Route Spec")
|
||||
else:
|
||||
print(f'Route created {content["method"]} {content["url_pattern"]}')
|
||||
return web.json_response(name)
|
||||
return web.json_response(name, status=201)
|
||||
return _append_route
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user