Handling a 201 status as a successful upload

The response from the server *should* be a 201 if the upload is successful so I made this small change.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.2