You need to give the web server (apache most often) access permission to that file. This is achieved with CHMOD and/or CHOWN.
If its not working for everything under /dir/627/ but does for other directories under /dir you could also check if there's not a misconfigured .htaccess inside /dir/627/ if you find one just rename it and check again.