Add a simple mechanism for request logic to control the status code instead of always returning 500