Improve error reporting for /links requests.