dramatically simplified patch

%opts can now contain a {status_code}, which should be an (integer) HTTP
status code.