Return an HTTP code 201 when creating a document