Accept the HTTP 201 (created) status as a valid response from the server

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