Fix/5838 failing test

#5838 test is failing because of an `InvalidArgumentException` thrown by `Response`. The test asset is not using the correct method for custom status codes: `setStatusCode()` only accepts valid HTTP codes since #5732.