Accept the HTTP 201 (created) as success

If the server responds with a 201 status, it means that it has successfully created the resource (in this case the file being uploaded) so it should be a success case in the status function.