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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user