Skip to content

BANK-1321Fix raising correct error when some banks put business-level error codes in the header position - #13

Merged
vnovitskyi merged 1 commit into
masterfrom
vn/fix-error-raising
Apr 27, 2026
Merged

BANK-1321Fix raising correct error when some banks put business-level error codes in the header position#13
vnovitskyi merged 1 commit into
masterfrom
vn/fix-error-raising

Conversation

@vnovitskyi

@vnovitskyi vnovitskyi commented Apr 24, 2026

Copy link
Copy Markdown

Some banks return business-level EBICS error codes (e.g. 091210 / EBICS_X509_WRONG_KEY_USAGE) in the header/technical position of the XML response rather than the body. The gem's middleware raises TechnicalError for header codes — but TechnicalError::ERRORS does not contain the key. The result is that valid, known errors are reported as EPICS_UNKNOWN - unknown instead of their actual description.

Before

Screenshot 2026-04-24 at 14 30 30

After

Screenshot 2026-04-24 at 14 29 31

@vnovitskyi vnovitskyi changed the title Fix raising correct error when some banks put business-level error codes in the header position BANK-1321Fix raising correct error when some banks put business-level error codes in the header position Apr 27, 2026
@vnovitskyi
vnovitskyi marked this pull request as ready for review April 27, 2026 08:56
@vnovitskyi
vnovitskyi merged commit f7a5f7f into master Apr 27, 2026
5 checks passed
@vnovitskyi
vnovitskyi deleted the vn/fix-error-raising branch April 27, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants