Configure url direction and code for response.