return error codes from webfinger
This commit is contained in:
parent
a99f359266
commit
74d2c18954
1 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,10 @@ class Module(ModuleManager.BaseModule):
|
||||||
}],
|
}],
|
||||||
"subject": resource
|
"subject": resource
|
||||||
})
|
})
|
||||||
|
else:
|
||||||
|
event["response"].code = 404
|
||||||
|
else:
|
||||||
|
event["response"].code = 400
|
||||||
|
|
||||||
@utils.hook("api.get.ap-user")
|
@utils.hook("api.get.ap-user")
|
||||||
@utils.kwarg("authenticated", False)
|
@utils.kwarg("authenticated", False)
|
||||||
|
|
Loading…
Reference in a new issue