Skip to content

Commit

Permalink
✔ Status Code
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed May 20, 2023
1 parent f22d003 commit 98413e8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/api/controllers/fansub.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,11 +480,11 @@ export class FansubController {
} catch (error) {
if (error instanceof HttpException) throw error;
throw new HttpException({
info: `🙄 404 - Fansub API :: Gagal Mendapatkan All Members 😪`,
info: `🙄 400 - Fansub API :: Gagal Mendapatkan All Members 😪`,
result: {
message: 'Member Fansub Tidak Ditemukan!'
message: 'Data Tidak Lengkap!'
}
}, HttpStatus.NOT_FOUND);
}, HttpStatus.BAD_REQUEST);
}
}

Expand Down Expand Up @@ -554,11 +554,11 @@ export class FansubController {
} catch (error) {
if (error instanceof HttpException) throw error;
throw new HttpException({
info: `🙄 404 - Fansub API :: Gagal Menarik Data 😪`,
info: `🙄 400 - Fansub API :: Gagal Menarik Data 😪`,
result: {
message: 'RSS Fansub Tidak Ditemukan!'
message: 'Data Tidak Lengkap!'
}
}, HttpStatus.NOT_FOUND);
}, HttpStatus.BAD_REQUEST);
}
}

Expand Down

0 comments on commit 98413e8

Please sign in to comment.