Made nonexistent ajax calls error differently than browser requests, so ajax errors are more useful and obvious.