MCPcopy Index your code
hub / github.com/OWASP/Python-Honeypot / msg_structure

Function msg_structure

api/utility.py:7–21  ·  view source on GitHub ↗

basic JSON message structure Args: status: status (ok, failed) msg: the message content Returns: a JSON message

(status="", msg="")

Source from the content-addressed store, hash-verified

5
6
7def msg_structure(status="", msg=""):
8 """
9 basic JSON message structure
10
11 Args:
12 status: status (ok, failed)
13 msg: the message content
14
15 Returns:
16 a JSON message
17 """
18 return {
19 "status": status,
20 "msg": msg
21 }
22
23
24def all_mime_types():

Callers 7

error_400Function · 0.90
error_401Function · 0.90
error_403Function · 0.90
error_404Function · 0.90
error_500Function · 0.90

Calls

no outgoing calls

Tested by 2