add phpdoc for NullLoader
Set the correct requestformat if html is fallback. Also use the correct status code for the response