# Setting Title & Error messages

### Methods use to set all the configuration is

```
accura.setupAccuraConfig( config, function (result), function (error));
```

### *Parameter*:

***config***: JSON Object

### ***Response:***&#x20;

***Success***: JSON Response = {"Messages setup successfully"}\
\&#xNAN;***Error***: String

#### *Example Function:*

```
function setupAccuraConfig() {

    var config = {
        ACCURA_ERROR_CODE_MOTION:'Keep Document Steady',
        ACCURA_ERROR_CODE_DOCUMENT_IN_FRAME:'Keep document in frame',
        ACCURA_ERROR_CODE_BRING_DOCUMENT_IN_FRAME:'Bring card near to frame',
        ACCURA_ERROR_CODE_PROCESSING:'Processing…',
        ACCURA_ERROR_CODE_BLUR_DOCUMENT:'Blur detect in document',
        ACCURA_ERROR_CODE_FACE_BLUR:'Blur detected over face' ,
        ACCURA_ERROR_CODE_GLARE_DOCUMENT:'Glare detect in document' ,
        ACCURA_ERROR_CODE_HOLOGRAM:'Hologram Detected', 
        ACCURA_ERROR_CODE_DARK_DOCUMENT:'Low lighting detected',
        ACCURA_ERROR_CODE_PHOTO_COPY_DOCUMENT: 'Can not accept Photo Copy Document',
        ACCURA_ERROR_CODE_FACE:'Face not detected',
        ACCURA_ERROR_CODE_MRZ:'MRZ not detected',
        ACCURA_ERROR_CODE_PASSPORT_MRZ:'Passport MRZ not detected',
        ACCURA_ERROR_CODE_ID_MRZ:'ID card MRZ not detected',
        ACCURA_ERROR_CODE_VISA_MRZ:'Visa MRZ not detected',
        ACCURA_ERROR_CODE_WRONG_SIDE:'Scanning wrong side of document',
        ACCURA_ERROR_CODE_UPSIDE_DOWN_SIDE:'Document is upside down. Place it properly',
    
        IS_SHOW_LOGO: true,
        SCAN_TITLE_OCR_FRONT: 'Scan Front Side of OCR Document',
        SCAN_TITLE_OCR_BACK: 'Scan Back Side of OCR Document',
        SCAN_TITLE_OCR:'Scan',
        SCAN_TITLE_BANKCARD:'Scan Bank Card',
        SCAN_TITLE_BARCODE:'Scan Barcode',
        SCAN_TITLE_MRZ_PDF417_FRONT:'Scan Front Side of Document',
        SCAN_TITLE_MRZ_PDF417_BACK:'Now Scan Back Side of Document',
        SCAN_TITLE_DLPLATE:'Scan Number Plate'
    };
    
    accura.setupAccuraConfig( config, function (result) {
        console.log("Messgae:- ", result);
    }, function (error) {
        alert(error);
    });
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.accurascan.com/language/cordova/functions/setting-title-and-error-messages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
