Skip to content

Commit 8a076f4

Browse files
committed
Correctly trigger 404 errors
1 parent 9597d15 commit 8a076f4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

proxies/live/apiproxy/targets/target.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@
2323
<Step>
2424
<Name>SetMimeType</Name>
2525
</Step>
26-
<Step>
27-
<Name>RaiseFault.404NotFound</Name>
28-
<Condition>response.header.x-amzn-ErrorType = IncompleteSignatureException</Condition>
29-
</Step>
3026
</Response>
3127
</PostFlow>
3228
<FaultRules>
29+
<FaultRule name="404_Not_Found">
30+
<Step>
31+
<Name>RaiseFault.404NotFound</Name>
32+
</Step>
33+
<Condition>response.header.x-amzn-ErrorType = "IncompleteSignatureException"</Condition>
34+
</FaultRule>
3335
<FaultRule name="unauthorized">
3436
<Step>
3537
<Name>RaiseFault.401Unauthorized</Name>

0 commit comments

Comments
 (0)