Update BasicNetwork.java

This class is not take in consideration 201 status code that is valid response for create request.
I'd patched it locally and propose to include it in origin code.