main.py

we should add checks for when document can't be accessed or created, or deleted and so on in the endpoints. 

also in these cases we shouldn't send 200