When api_v3 action ends in error when it should have returned a file, di...

...eError needs to be called instead of returning an API error object