Return a 400 error code if the uploaded file is not valid