Send proper HTTP status code for failed files