send status code rather than just setting it and doing nothing