We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d96968f commit 848cb64Copy full SHA for 848cb64
backend/src/reports/reports.controller.ts
@@ -9,6 +9,7 @@ import {
9
Req,
10
UnauthorizedException,
11
Post,
12
+ NotFoundException,
13
} from '@nestjs/common';
14
import {
15
ApiTags,
@@ -83,11 +84,11 @@ export class ReportsController {
83
84
const report = await this.reportsService.findOne(id, userId);
85
86
if (!report) {
- throw new UnauthorizedException('Report not found');
87
+ throw new NotFoundException('Report not found');
88
}
89
90
if (report.processingStatus === ProcessingStatus.FAILED) {
- throw new UnauthorizedException('Processing failed');
91
+ throw new NotFoundException('Processing failed');
92
93
94
return report;
0 commit comments