server any documents
add content type and handle error
modify the server and add direct