flaggenschnapp/response.py
psychophoniac 73da285d46 C
initial crA
2021-05-03 21:19:33 +02:00

6 lines
136 B
Python

from starlette.responses import JSONResponse
def error_response(msg: str) -> JSONResponse():
return JSONResponse(dict(error=msg))