Make response code configurable