Skip to content

fix: follow mmfcapi ApiReturnCode business code renumbering - #81

Merged
sparkbarry merged 1 commit into
mainfrom
barry/api-return-codes-main
Nov 8, 2026
Merged

sparkbarry merged 1 commit into
mainfrom
barry/api-return-codes-main

Conversation

@LeZi9916

@LeZi9916 LeZi9916 commented Nov 8, 2026

Copy link
Copy Markdown
Member

The backend replaced its CODE_* constants with the ApiReturnCode enum: request errors are now 4XXXX (prefix follows the closest HTTP status) and account errors are 6XXXX. Update src/config/apiRetCode.ts to mirror the enum (adding ItemAlreadyExists, ItemDeleted and TooManyRequests) and move test fixtures to the new wire values.

The backend replaced its CODE_* constants with the ApiReturnCode enum:
request errors are now 4XXXX (prefix follows the closest HTTP status) and
account errors are 6XXXX. Update src/config/apiRetCode.ts to mirror the
enum (adding ItemAlreadyExists, ItemDeleted and TooManyRequests) and move
test fixtures to the new wire values.
@sparkbarry
sparkbarry merged commit ba2d2b9 into main Nov 8, 2026
2 checks passed
@sparkbarry
sparkbarry deleted the barry/api-return-codes-main branch November 8, 2026 12:48
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