question: private static JSONObject createFileTransferError ( int errorCode , String source , String target , String body , Integer httpStatus ) { JSONObject error = null ; try { error = new JSONObject ( ) ; error . put ( "code" , errorCode ) ; error . put ( "source" , source ) ; error . put ( "target" , target ) ; if ( body != null ) { error . put ( "body" , body ) ; } if ( httpStatus != null ) { error . put ( "http_status" , httpStatus ) ; } } catch ( JSONException e ) { Log . e ( LOG_TAG , e . getMessage ( ) , e ) ; } return error ; }
target:  Create an error object based on the passed in errorCode