feat: add receipt proxy tier guard, 422 forwarding, and tests (refs #139)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Eric Gullickson
2026-02-11 11:20:58 -06:00
parent 1a6400a6bc
commit 88c2d7fbcd
4 changed files with 40 additions and 3 deletions

View File

@@ -322,6 +322,12 @@ export class OcrController {
message: error.message,
});
}
if (error.statusCode === 422) {
return reply.code(422).send({
error: 'Unprocessable Entity',
message: error.message,
});
}
logger.error('Receipt extract failed', {
operation: 'ocr.controller.extractReceipt.error',