fix bug causing status codes to not be properly logged