src/network/error-parsing.js
function manageResponseErrors(responseErrors, options) {

    return {
        globals: _treatGlobalErrors(responseErrors),
        fields: _handleStatusError(responseErrors, options)
    };
}
function manageResponseErrors(responseErrors, options) {

    return {
        globals: _treatGlobalErrors(responseErrors),
        fields: _handleStatusError(responseErrors, options)
    };
}
function manageResponseErrors ( responseErrors , options ) { return { globals : _treatGlobalErrors ( responseErrors ) , fields : _handleStatusError ( responseErrors , options ) } ; }
Transform errors send by API to application errors. Dispatch depending on the response http code.
@param  {object} responseErrors Errors from fetch call
@param  {object} options Options for the exceptions teratement such as the model, {model: modelVar}.
@return {object} The parsed error response.
Transform errors send by API to application errors . Dispatch depending on the response http code .