question: private int detectErrorCode ( String errorMessage ) { final String error = errorMessage != null ? errorMessage : null ; if ( error == null ) { return 400 ; } if ( error . equals ( DAILY_TRANSACTION_LIMIT_EXCEEDED ) ) { return 429 ; } else if ( error . equals ( INVALID_API_KEY ) ) { return 401 ; } else { return 400 ; } }
target:  Detect the error code based on the error message.