Added error responses and changed of a test function.

13 jobs for migrate-upload-api in 20 minutes and 41 seconds (queued for 2 seconds)