Skip to content

Commit

Permalink
fix: wado retrieve not exist instance must be 404
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Apr 27, 2023
1 parent 3845e38 commit 93596fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/WADO-URI/service/WADO-URI.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WadoUriService {
} catch (e) {

if (e instanceof NotFoundInstanceError) {
this.response.writeHead(204, {
this.response.writeHead(404, {
"Content-Type": "application/dicom+json"
});
return this.response.end();
Expand All @@ -55,7 +55,7 @@ class WadoUriService {

if (e instanceof NotFoundInstanceError) {

this.response.writeHead(204, {
this.response.writeHead(404, {
"Content-Type": "application/dicom+json"
});
return this.response.end();
Expand Down
2 changes: 1 addition & 1 deletion api/dicom-web/controller/WADO-RS/rendered/series.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class RetrieveRenderedSeriesController extends Controller {
}
multipartWriter.writeFinalBoundary();
} else {
this.response.writeHead(204, {
this.response.writeHead(404, {
"content-type": "application/dicom+json"
});
}
Expand Down
2 changes: 1 addition & 1 deletion api/dicom-web/controller/WADO-RS/rendered/study.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class RetrieveRenderedStudyController extends Controller {
}
multipartWriter.writeFinalBoundary();
} else {
this.response.writeHead(204, {
this.response.writeHead(404, {
"content-type": "application/dicom+json"
});
}
Expand Down

0 comments on commit 93596fd

Please sign in to comment.