we check if a file exists in and out of the lock when reading
if the file is deleted between checks, the inner check attempts to return an error
we had already access the output stream from the response object so it is committed to 200
fixed by waiting to get the output stream until after the second check
Former-commit-id: be28c7e1cd [formerly 2aa9dcb248] [formerly ce1038723d] [formerly ce1038723d [formerly bfde9c37ce]] [formerly d44c55e976 [formerly ce1038723d [formerly bfde9c37ce] [formerly d44c55e976 [formerly 31c42d161146b0367435c66535d4da700a572f24]]]]
Former-commit-id: d44c55e976
Former-commit-id: 480c4c2e6512b4efe5880a9cde445ff156174829 [formerly 1b8f3ce536ab968c6e5e63d5bfe2ffc91722e548] [formerly ab86cda554 [formerly d693c07bb4]]
Former-commit-id: ab86cda554
Former-commit-id: fb6be670b1