The error could be permission based (either on the /forum directory or the files in it), some webservers don't like broad permissions on folders/files; make sure the /forum directory is chmodded 755 and ubbthreads.php is chmodded 644.
As for the 404 error, that's entirely server generated, it's telling you that the file indicated to be loaded as the error page doesn't exist.