github.com/prebid/prebid-server@v0.275.0/endpoints/openrtb2/sample-requests/hooks/auction_reject_with_error.json (about) 1 { 2 "description": "Auction request", 3 "config": { 4 "mockBidders": [ 5 {"bidderName": "appnexus", "currency": "USD", "price": 0.00} 6 ] 7 }, 8 "mockBidRequest": { 9 "id": "some-request-id", 10 "site": { 11 "page": "prebid.org" 12 }, 13 "imp": [ 14 { 15 "id": "some-impression-id", 16 "banner": { 17 "format": [ 18 { 19 "w": 300, 20 "h": 250 21 } 22 ] 23 }, 24 "ext": { 25 "appnexus": { 26 "placementId": 12883451 27 } 28 } 29 } 30 ], 31 "tmax": 500, 32 "test": 1, 33 "ext": { 34 "prebid": { 35 "trace": "verbose" 36 } 37 } 38 }, 39 "expectedBidResponse": { 40 "id": "some-request-id", 41 "bidid": "test bid id", 42 "nbr": 123, 43 "ext": { 44 "prebid": { 45 "modules": { 46 "errors": { 47 "foobar": { 48 "foo": [ 49 "dummy", 50 "Module foobar (hook: foo) rejected request with code 123 at entrypoint stage" 51 ] 52 } 53 }, 54 "trace": { 55 "stages": [ 56 { 57 "stage": "entrypoint", 58 "outcomes": [ 59 { 60 "entity": "http-request", 61 "groups": [ 62 { 63 "invocation_results": [ 64 { 65 "analytics_tags": {}, 66 "hook_id": { 67 "module_code": "foobar", 68 "hook_impl_code": "foo" 69 }, 70 "status": "execution_failure", 71 "action": "reject", 72 "message": "" 73 } 74 ] 75 } 76 ] 77 } 78 ] 79 } 80 ] 81 } 82 } 83 } 84 } 85 }, 86 "expectedReturnCode": 200 87 }