AJAX request, PHP returns content and 404

Hey!
My problem is following: I making ajax request (with jQuery and post function) to a PHP script. The script runs (the changes are made to session variables) and returns some html (which can be seen Firebug console) but at the same time the response is treated as 404.

Any ideas? I’m completely stuck…
Many thanks in advance!
Greetings

The error message is saying it cannot find the file ‘jcart-relay.php’. Make sure that file is in the directory specified.

OK, solved the problem in the meantime (I really thought I’m stucked completely) the soluton was to manually add following line in the script file:

header('HTTP/1.1 200 OK', true, 200);

but I’m still completely unaware why the script should return 404 on default